Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        ShipsButton    = GameObject.Find("ShipsButton");
        UpgradesButton = GameObject.Find("UpgradesButton");
        ShipsPanel     = GameObject.Find("ShipsPanel");
        RepairsButton  = GameObject.Find("RepairsButton");
        RepairsPanel   = GameObject.Find("RepairsPanel");
        UpgradesPanel  = GameObject.Find("UpgradesPanel");

        ShipsPanel.SetActive(false);
        UpgradesPanel.SetActive(false);
    }
Esempio n. 2
0
    void Start()
    {
        if (_upgradeProgress != null)
        {
            UpdateInfo();
        }

        _upgradesPanel = FindObjectOfType <UpgradesPanel>();

        if (_upgradeProgress.Special == null)
        {
            _costBG.gameObject.SetActive(false);
        }
    }
Esempio n. 3
0
 public void onRepairsClick()
 {
     UpgradesPanel.SetActive(false);
     ShipsPanel.SetActive(false);
     RepairsPanel.SetActive(true);
 }