Esempio n. 1
0
 // 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());
 }
Esempio n. 2
0
    void Start()
    {
        if (Player == null)
        {
            Player = BindPlayer();
        }

        if (PlayerMagic == null)
        {
            PlayerMagic = BindPlayerMagic();
        }
    }
Esempio n. 3
0
 // 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();
 }