示例#1
0
 private void StartReloadPhase()
 {
     Debug.Log("Starting Reload Phase");
     PrepareReloadUI();
     CurrentPhase = RevolverPhase.Load;
     Timer.StartTimer(ReloadDuration);
 }
示例#2
0
    private void StartShootingPhase()
    {
        Debug.Log("Starting Shooting Phase");
        PrepareShootingUI();

        CurrentPhase     = RevolverPhase.Shoot;
        TotalPimpkinsHit = 0;
        BulletsInClip    = TotalBulletsDropped;
        Timer.StartTimer(ShootingDuration);
    }
示例#3
0
    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();
        }
    }