예제 #1
0
파일: Fighter.cs 프로젝트: nasa03/ness
    /*
     * After charging a weapon, when the fighter lets go of the charge, it should
     * perform ReleaseWeapon. This method stamps off the charged up time and begins
     * the Swing animation.
     */
    public void ReleaseWeapon()
    {
        bool isCharging = chargeUpTimer.IsRunning();

        if (isCharging)
        {
            currentChargeUpTime = chargeUpTimer.GetTimerRuntime();
            chargeUpTimer.StopTimer();
            FireWeapon();
        }
    }
예제 #2
0
파일: Fighter.cs 프로젝트: nasa03/ness
 /*
  * Set the fighter back to non-blocking state.
  */
 public void UnBlock(bool isShieldBreak)
 {
     if (isShieldBreak)
     {
         PlaySound(shieldBreakSound);
     }
     else
     {
         PlaySound(shieldUpSound);
     }
     shieldTime.StopTimer();
     isBlocking = false;
 }