// Start is called before the first frame update void Start() { foot = GameObject.Find("Foot"); playermagic = GameObject.Find("Jack").GetComponent <PlayerMagicAttack>(); lastTime = playermagic.healHealthLastTime; StartCoroutine(EndMagic()); }
void Start() { if (Player == null) { Player = BindPlayer(); } if (PlayerMagic == null) { PlayerMagic = BindPlayerMagic(); } }
// Start is called before the first frame update void Start() { if (PersistentData.getMagic1() == 0) { //magicbtn.gameObject.SetActive(false); } if (playermagic == null) { playermagic = GameObject.Find("Icons") .GetComponent <BoundObjects>().BindPlayerMagic(); } magicbtn.onClick.AddListener(Onclickbtn); cdtime = playermagic.magic1CDTime; EndMagic(); }