private void MoveRocketIfThrusting() { if (RocketDirection.isThrusting()) { rigidBody.AddRelativeForce(Vector3.up); } }
private void ThrustingSoundeffect() { if (RocketDirection.isThrusting()) { rocketsSoundeffect.StartThrustSoundeffect(); } else { rocketsSoundeffect.StopThrustSoundeffect(); } }
private void RotateRocket() { rigidBody.freezeRotation = true; setEulerAngleRotationXAndYTo(0, 0); if (RocketDirection.isRotatingLeft()) { RotateLeft(); } else if (RocketDirection.isRotatingRight()) { RotateRight(); } rigidBody.freezeRotation = false; }