void Start()
 {
     dropdown     = this.gameObject.transform.GetChild(0).GetChild(0).gameObject;
     StartClick   = false;
     SMaster      = GameObject.Find("SceneMaster").GetComponent <Script_SceneMaster>();
     TowerScript  = SMaster.ActiveTower.GetComponent <Script_Tower>();
     WeaponScript = SMaster.ActiveTower.transform.GetChild(0).GetComponent <Script_Weapon>();
     Variables    = GameObject.Find("SceneMaster").GetComponent <Script_Variables>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     ToolTipDelay   = 0.3f;
     SMaster        = GameObject.Find("SceneMaster").GetComponent <Script_SceneMaster>();
     WeaponScript   = this.transform.GetChild(0).GetComponent <Script_Weapon>();
     Variables      = GameObject.Find("SceneMaster").GetComponent <Script_Variables>();
     RangeIndicator = null;
     Countdown      = ToolTipDelay;
 }
    void Start()
    {
        StartClick = false;
        SMaster    = GameObject.Find("SceneMaster").GetComponent <Script_SceneMaster>();
        Variables  = GameObject.Find("SceneMaster").GetComponent <Script_Variables>();
        cd         = 0.01f;

        for (int i = 0; i <= 2; i++)
        {
            ButtonInteractable(i);
        }
    }