コード例 #1
0
 private void OnFall(bool isFalling)
 {
     if (isFalling)
     {
         this.mMesh.JumpLoop();
         GravitySpeed.Reset();
     }
     else
     {
         if (GravitySpeed.GetTimeSinceFall() >= 600)
         {
             this.Hit(GravitySpeed.GetSpeed() / GravitySpeed.SPEED_TMAX * VanillaPlayer.DEFAULT_PLAYER_LIFE * 0.8f);
         }
         if (this.mCharInfo.IsPlayer)
         {
             ((Sinbad)this.mMesh).EndJump();
         }
     }
 }