Class AircraftMonoBehaviour
Base class for aircraft component MonoBehaviours providing automatic reference caching to the parent AircraftController and AircraftInputManager.
Inheritance
AircraftMonoBehaviour
Namespace: NWH.Aerodynamics.AircraftController
Assembly: NWH.Aerodynamics.dll
Syntax
public abstract class AircraftMonoBehaviour : MonoBehaviour
Remarks
Derive from this class when creating custom aircraft components that need access to the aircraft's main controller or input system. References are automatically resolved on Awake by searching up the parent hierarchy, eliminating the need for manual assignment.
Fields
| Edit this page View Source_aircraftController
Cached reference to the parent AircraftController. Automatically resolved on Awake.
Declaration
[NonSerialized]
protected AircraftController _aircraftController
Field Value
| Type | Description |
|---|---|
| AircraftController |
_inputManager
Cached reference to the parent AircraftInputManager. Automatically resolved on Awake.
Declaration
[NonSerialized]
protected AircraftInputManager _inputManager
Field Value
| Type | Description |
|---|---|
| AircraftInputManager |
Methods
| Edit this page View SourceAwake()
Declaration
public virtual void Awake()