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