private void Awake()
        {
            m_Plane     = GetComponent <AircraftController>();
            m_Rigidbody = GetComponent <Rigidbody>();

            m_EngineSoundSource             = gameObject.AddComponent <AudioSource>();
            m_EngineSoundSource.playOnAwake = false;

            m_WindSoundSource             = gameObject.AddComponent <AudioSource>();
            m_WindSoundSource.playOnAwake = false;

            m_EngineSoundSource.clip = m_EngineSound;
            m_WindSoundSource.clip   = m_WindSound;

            m_EngineSoundSource.minDistance  = m_AdvancedSetttings.engineMinDistance;
            m_EngineSoundSource.maxDistance  = m_AdvancedSetttings.engineMaxDistance;
            m_EngineSoundSource.loop         = true;
            m_EngineSoundSource.dopplerLevel = m_AdvancedSetttings.engineDopplerLevel;

            m_WindSoundSource.minDistance  = m_AdvancedSetttings.windMinDistance;
            m_WindSoundSource.maxDistance  = m_AdvancedSetttings.windMaxDistance;
            m_WindSoundSource.loop         = true;
            m_WindSoundSource.dopplerLevel = m_AdvancedSetttings.windDopplerLevel;

            Update();

            m_EngineSoundSource.Play();
            m_WindSoundSource.Play();
        }
 private void Start()
 {
     m_Jet                = FindAircraftParent();
     m_System             = GetComponent <ParticleSystem>();
     m_OriginalLifetime   = m_System.main.startLifetime.constant;
     m_OriginalStartSize  = m_System.main.startSize.constant;
     m_OriginalStartColor = m_System.main.startColor.color;
 }
 private void Start()
 {
     m_Plane = GetComponent <AircraftController>();
     foreach (var surface in m_ControlSurfaces)
     {
         surface.originalLocalRotation = surface.transform.localRotation;
     }
 }
 private void Start()
 {
     m_Plane     = GetComponent <AircraftController>();
     m_Animator  = GetComponent <Animator>();
     m_Rigidbody = GetComponent <Rigidbody>();
 }
 private void Awake()
 {
     m_Aircraft = GetComponent <AircraftController>();
 }