private void Awake() { if (instance == null) { instance = this; } }
// Use this for initialization void Start() { walletController = oyagiObject.GetComponent <WalletController>(); atmController = atmObject.GetComponent <ATMController>(); timerController = timerObject.GetComponent <GameTimerController>(); resultLayerController = resultLayerObject.GetComponent <ResultLayerController>(); startCash = atmController.cash; }
// Use this for initialization private void Awake() { spawnRoutine = SpawnAttackersInIntervals(); gameTimerController = FindObjectOfType <GameTimerController>(); audioController = FindObjectOfType <AudioController>(); }
private void FindObjects() { gameTimerController = FindObjectOfType <GameTimerController>(); startWaveButton = FindObjectOfType <StartWaveButton>(); audioController = FindObjectOfType <AudioController>(); }