Example #1
0
 void Start()
 {
     _this                  = this;
     database               = GameManager.gm.GetComponentInChildren <UpgradeDatabase>();
     upgradePanel           = GameObject.Find("UpgradePanel");
     upgradeScrollPanel     = GameObject.Find("UpgradeScrollPanel");
     upgradeScrollPanelrect = upgradeScrollPanel.GetComponent <RectTransform>();
     upgradePanel.GetComponent <Transform>().localScale = new Vector3(1, 1, 1);
     upgradePanel.SetActive(false);
     MakeUpgradeList();
 }
Example #2
0
 void Start()
 {
     upgradeChkup           = this;
     database               = GameManager.gm.GetComponentInChildren <UpgradeDatabase>();
     upgradePanel           = GameObject.Find("UpgradePanel");
     upgradePanel2          = GameObject.Find("UpgradePanel2");
     upgradeScrollPanel     = GameObject.Find("UpgradeScrollPanel");
     upgradeStatusText      = GameObject.Find("UpgradeStatus").GetComponentInChildren <Text>();
     upgradeScrollPanelrect = upgradeScrollPanel.GetComponent <RectTransform>();
     upgradePanel.GetComponent <Transform>().localScale = new Vector3(1, 1, 1);
     upgradePanel.SetActive(false);
     MakeUpgradeList();
     upgradeStatusText.text = "남은 돈 : " + GameManager.gm.Money();
 }