Class FlipOverModuleWrapper
MonoBehaviour wrapper for the FlipOver module.
Namespace: NWH.VehiclePhysics2.Modules.FlipOver
Assembly: NWH.VehiclePhysics2.dll
Syntax
[Serializable]
[DisallowMultipleComponent]
public class FlipOverModuleWrapper : ModuleWrapper
Remarks
Goes on a GameObject with a VehicleController. Holds the MonoBehaviour lifecycle and the serialized data; the flip-over logic itself lives in the module. Read flippedOver through module to drive a UI prompt.
Fields
module
The FlipOverModule instance managed by this wrapper.
Declaration
public FlipOverModule module
Field Value
| Type | Description |
|---|---|
| FlipOverModule |
Methods
GetModule()
Returns the contained FlipOverModule as a VehicleComponent.
Declaration
public override VehicleComponent GetModule()
Returns
| Type | Description |
|---|---|
| VehicleComponent | The FlipOverModule instance cast to VehicleComponent. |
Overrides
SetModule(VehicleComponent)
Sets the contained module from a VehicleComponent reference.
Declaration
public override void SetModule(VehicleComponent module)
Parameters
| Type | Name | Description |
|---|---|---|
| VehicleComponent | module | The VehicleComponent to set, must be a FlipOverModule instance. |