// Start is called before the first frame update void Start() { banknotesMade = 0; totalIncome = 0; moneyCounter = MoneyCounter.instance; shopScript = BuildingItems.instance; timerScript = Timer.instance; Update(); }
private void Awake() { if (instance != null) { Destroy(gameObject); } else { instance = this; } shellenProductions = new int[] { 0, 1, 5, 10, 50, 100 }; numBuildings = new int[shellenProductions.Length]; }
// Start is called before the first frame update void Start() { shopScript = shopObject.GetComponent <BuildingItems>(); moneyCounter = moneyCountObject.GetComponent <MoneyCounter>(); buttonText = buttonTextObject.GetComponent <TextMeshProUGUI>(); }