コード例 #1
0
 public void UpdatePlayerIsActive()
 {
     if (!this.IsActive)
     {
         if (ActiveInput.GetFire())
         {
             this.IsActive = true;
         }
     }
 }
コード例 #2
0
 public void UpdateFiringState()
 {
     if (ActiveInput.GetFire())
     {
         if (CanFire)
         {
             IsFiring = true;
             CanFire  = false;
             //LastFireTime = References.Settings.Instance.GameTime.TotalGameTime.Seconds;
         }
         else
         {
             IsFiring = false;
         }
     }
     else
     {
         CanFire  = true;
         IsFiring = false;
     }
 }