diff --git a/Assets/ActionButton.cs b/Assets/ActionButton.cs new file mode 100644 index 0000000..5030fb7 --- /dev/null +++ b/Assets/ActionButton.cs @@ -0,0 +1,91 @@ +using UnityEngine; +using System.Collections; +using System.Reflection; +using UnityEngine.UI; + +public class ActionButton : MonoBehaviour +{ + + + public float countdown; + public float fullcount; + + public GameController GameCon; + + GameObject playergo; + + public Button buttonscript; + + + public float defaultYPos; + public float defaultXPos; + + public RectTransform maskRect; + public string action = "Mine"; + + + public bool ActionRuned; + + // Use this for initialization + void Start() + { + GameCon = GameObject.FindGameObjectWithTag("GameController").GetComponent(); + + countdown = 0; + + buttonscript = gameObject.GetComponent