C# Class BuilderSetupHandler, PocketGodsRPG_Proto

A simple state machine to setup the city building game. Serves as a main() program. By: NeilDG
Inheritance: MonoBehaviour
显示文件 Open project: pocket-playlab/PocketGodsRPG_Proto Class Usage Examples

Public Methods

Method Description
Awake ( ) : void
GetCurrentState ( ) : BuilderStateType
InitializeStateTable ( ) : void
OnDestroy ( ) : void
RegisterEventReceiver ( BuilderStateType builderState, System action ) : void

Convenience function that attaches an event receiver via event broadcaster system by specifying the corresponding build state. Does not accept parameters.

RemoveEventReceiver ( BuilderStateType builderState ) : void
SetState ( BuilderStateType stateType ) : void
Start ( ) : void

Private Methods

Method Description
DelayedMain ( ) : IEnumerator

Method Details

Awake() public method

public Awake ( ) : void
return void

GetCurrentState() public method

public GetCurrentState ( ) : BuilderStateType
return BuilderStateType

InitializeStateTable() public method

public InitializeStateTable ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

RegisterEventReceiver() public static method

Convenience function that attaches an event receiver via event broadcaster system by specifying the corresponding build state. Does not accept parameters.
public static RegisterEventReceiver ( BuilderStateType builderState, System action ) : void
builderState BuilderStateType Builder state.
action System Action.
return void

RemoveEventReceiver() public static method

public static RemoveEventReceiver ( BuilderStateType builderState ) : void
builderState BuilderStateType
return void

SetState() public method

public SetState ( BuilderStateType stateType ) : void
stateType BuilderStateType
return void

Start() public method

public Start ( ) : void
return void