public void Awake() { playerCtrl = GameObject.FindWithTag("Player").GetComponent <PlayerControl>(); uiCtrl = GameObject.FindObjectOfType(typeof(UserInterfaceControl)) as UserInterfaceControl; kills = 0; gunBonusFlag = false; gunBonusTime = 0; QuantityOfZombies = 0; GameOver = false; }
private void Start() { rounds = MaxRounds; uiCtrl = GameObject.FindObjectOfType(typeof(UserInterfaceControl)) as UserInterfaceControl; }