private void StartReloadPhase() { Debug.Log("Starting Reload Phase"); PrepareReloadUI(); CurrentPhase = RevolverPhase.Load; Timer.StartTimer(ReloadDuration); }
private void StartShootingPhase() { Debug.Log("Starting Shooting Phase"); PrepareShootingUI(); CurrentPhase = RevolverPhase.Shoot; TotalPimpkinsHit = 0; BulletsInClip = TotalBulletsDropped; Timer.StartTimer(ShootingDuration); }
private void ResetShootingValues() { CurrentPhase = RevolverPhase.Inactive; BulletsInClip = 0; for (int i = 0; i < BulletUIInShoot.Length; i++) { BulletUIInShoot[i].SetActive(false); IsPimpkinReserved[i] = false; } Debug.Log($"Total Pimpkins Heads: {Pimpkins.Length}"); foreach (PimpkinHead pimpkin in Pimpkins) { if (pimpkin.GetHit()) { TotalPimpkinsHit++; } pimpkin.ResetPimpkinValues(); } }