using UnityEngine;
using System.Collections;
public class playPokerOut : MonoBehaviour {
UIButton button;
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetMouseButtonDown(1)){
button .transform.localPosition -= transform .up *30;
}
}
public void pokerOut(){
button = UIButton .current ;
button .transform.localPosition += transform .up *30;
}
}
using System.Collections;
public class playPokerOut : MonoBehaviour {
UIButton button;
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetMouseButtonDown(1)){
button .transform.localPosition -= transform .up *30;
}
}
public void pokerOut(){
button = UIButton .current ;
button .transform.localPosition += transform .up *30;
}
}