Esempio n. 1
0
 void FindGoldPanel()
 {
     goldPanel   = GameObject.Find("GoldPanel");
     goldDisplay = GameObject.FindObjectOfType <GoldDisplay>();
     if (!goldDisplay)
     {
         Debug.LogError("Please create you gold Panel object");
     }
 }
Esempio n. 2
0
 void Start()
 {
     matrix      = new int[9, 5];
     goldDisplay = GameObject.FindObjectOfType <GoldDisplay>();
     parent      = GameObject.Find("Defenders");
     if (!parent)
     {
         parent = new GameObject("Defenders");
     }
 }
Esempio n. 3
0
 private void Start()
 {
     goldDisplay    = FindObjectOfType <GoldDisplay>();
     currentBalance = startBalance;
     UpdateBalanceDisplay();
 }
Esempio n. 4
0
 void Start()
 {
     goldDisplay = GameObject.FindObjectOfType <GoldDisplay>();
 }
Esempio n. 5
0
 private void Start()
 {
     goldDisplay = FindObjectOfType <GoldDisplay>();
 }