Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        magicsFactory = GetComponent<MagicsFactory>();
        StunCoolDown = 2;
        FrenzyCoolDown = 2;
        HealCoolDown = 2;
        TeleportCoolDown = 2;
        HasteCoolDown = 4;

        stunIconEnabled = true;
        frenzyIconEnabled = true;
        healIconEnabled = true;
        teleportIconEnabled = true;
        hasteIconEnabled = true;
        nextButtonEnabled = false;
    }
Exemplo n.º 2
0
    private float thirdMagicCoolDown; //This value should be got from store

    #endregion Fields

    #region Methods

    // Use this for initialization
    void Awake()
    {
        magicsStore = GameObject.FindWithTag("MagicsStore");
        magicsStore.GetComponent<MagicsStore>().enabled = false;
        magicsFactory = magicsStore.GetComponent<MagicsFactory>();
    }
 void Awake()
 {
     magicsFactory = GetComponent<MagicsFactory>();
 }