BomberUnits
...a Unity learning project
NetStateMachine Class Reference
+ Inheritance diagram for NetStateMachine:
+ Collaboration diagram for NetStateMachine:

Public Member Functions

bool IsMaster ()
 
string GetCurStateName ()
 
ui.StdDialog GetNetOverlay ()
 
void HideNetOverlay ()
 
- Public Member Functions inherited from StateMachine
State GetActiveState ()
 Returns a reference to the currently active state.
 
void TriggerTransition (string transName)
 Overload to enable external transition triggering from current state. More...
 
void TriggerTransition (string fromState, string transName)
 Overload to enable external transition triggering using state and transition names. More...
 
void TriggerTransition (State fromState, string transName)
 Attempts to execute the given transition. More...
 
void UpdateCurrentState (State stateRef)
 Used bu all States to announce themselves as currently active state when entered.
 
void RegisterState (State state)
 Used by all States to register themselves at the SM during startup. More...
 

Public Attributes

GameObject netOverlayPrefab
 
- Public Attributes inherited from StateMachine
bool logEnabled
 

Protected Member Functions

override void MyStart ()
 Override to provide an extended Start function for subclasses. Do not override 'Start()' itself!
 

Private Member Functions

void OnDisconnect ()
 The NetSM is responsible for getting us back into OfflineMode. More...
 

Private Attributes

GameObject netOverlayInstance
 Modal dialog used during multiple states.
 

Additional Inherited Members

- Protected Attributes inherited from StateMachine
State activeState = null
 Holds a reference to the current active state.
 
Animator controller = null
 Reference to the Unity (Animation) mechanism for SM design.
 

Detailed Description

Definition at line 6 of file NetStateMachine.cs.

Member Function Documentation

◆ OnDisconnect()

void OnDisconnect ( )
inlineprivate

The NetSM is responsible for getting us back into OfflineMode.

A modal dialog hinders user intervention during that period.

Definition at line 67 of file NetStateMachine.cs.


The documentation for this class was generated from the following file: