示例#1
0
 private void MoveRocketIfThrusting()
 {
     if (RocketDirection.isThrusting())
     {
         rigidBody.AddRelativeForce(Vector3.up);
     }
 }
示例#2
0
 private void ThrustingSoundeffect()
 {
     if (RocketDirection.isThrusting())
     {
         rocketsSoundeffect.StartThrustSoundeffect();
     }
     else
     {
         rocketsSoundeffect.StopThrustSoundeffect();
     }
 }