C# Class EnemySplineController, wepwep

Inheritance: SplineController
Datei anzeigen Open project: encephalopathy/wepwep Class Usage Examples

Public Properties

Property Type Description
OnSplineSwapped SplineSwappedEventHandler
SpawnGroup GameObject[]
Speeds float[]

Public Methods

Method Description
DisableNodeObjects ( ) : void

Disables the spline objects, we don't need them outside design-time.

FollowSpline ( OnPathEndCallback endCallback, OnNodeArrivalCallback nodeCallback1, OnNodeLeavingCallback nodeCallback2 ) : void
SetSpline ( int splineNum ) : void
Start ( ) : void
Update ( ) : void

Protected Methods

Method Description
DrawGoKitSplineController ( ) : void
OnStart ( ) : void
SetupSplineInterpolator ( SplineInterpolator, interp, SplineNode, ninfo ) : void

Private Methods

Method Description
ChangeGizmoColor ( int i ) : void

Method Details

DisableNodeObjects() public method

Disables the spline objects, we don't need them outside design-time.
public DisableNodeObjects ( ) : void
return void

DrawGoKitSplineController() protected method

protected DrawGoKitSplineController ( ) : void
return void

FollowSpline() public method

public FollowSpline ( OnPathEndCallback endCallback, OnNodeArrivalCallback nodeCallback1, OnNodeLeavingCallback nodeCallback2 ) : void
endCallback OnPathEndCallback
nodeCallback1 OnNodeArrivalCallback
nodeCallback2 OnNodeLeavingCallback
return void

OnStart() protected method

protected OnStart ( ) : void
return void

SetSpline() public method

public SetSpline ( int splineNum ) : void
splineNum int
return void

SetupSplineInterpolator() protected method

protected SetupSplineInterpolator ( SplineInterpolator, interp, SplineNode, ninfo ) : void
interp SplineInterpolator,
ninfo SplineNode,
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

OnSplineSwapped public_oe property

public SplineSwappedEventHandler OnSplineSwapped
return SplineSwappedEventHandler

SpawnGroup public_oe property

The spawn group: A colection of splines that make up which enemy flights paths that this game object can switch to.
public GameObject[] SpawnGroup
return GameObject[]

Speeds public_oe property

public float[] Speeds
return float[]