![]() |
BomberUnits
...a Unity learning project
|
State for joining an existing room; expects to be connected to Master. More...
Inheritance diagram for JoinRoomState:
Collaboration diagram for JoinRoomState:Protected Member Functions | |
| override void | OnMyStateEnter () |
| Override to use OnStateEnter as extended by this base class. Do not override OnStateEnter! | |
Protected Member Functions inherited from ListeningState | |
| void | AddAutoListener (UnityEvent evt, UnityAction callback) |
| Adds an event and callback which will only be connected for as long as the state is active. | |
| virtual void | OnMyStateExit () |
| Override to use OnStateExit as extended by this base class. Do not override OnStateExit! | |
Protected Member Functions inherited from State | |
| void | TriggerTransition (string transName, float delay=0.0f) |
| Shortcut to trigger transitions from within this state for this state (i.e. More... | |
| virtual void | Awake () |
| Override to use an Awake function, which is not normally available for StateMachineBehaviours. | |
Private Member Functions | |
| void | OnJoinedRoom () |
| Called when the joining was a success, responsible for removing the overlay. | |
| void | OnJoinedRoomFailed () |
| This Callback is called when the client failed to join the new room. More... | |
| void | OnCancelBtnPressed () |
| This Callback is called if the user presses the cancel button during the join attempt. More... | |
| void | CloseOverlayAndContinue () |
| Sets the transition triggers to advance the NET and UI SMs. More... | |
Private Attributes | |
| float | closeOverlayDelay_Success = 1.0f |
| float | closeOverlayDelay_Failure = 2.0f |
Additional Inherited Members | |
Public Member Functions inherited from NetOverlayState | |
| override void | OnStateEnter (Animator animator, AnimatorStateInfo stateInfo, int layerIndex) |
| Extends the normal OnStateEnter function with state tracking for the containing SM. More... | |
Public Member Functions inherited from ListeningState | |
| override void | OnStateExit (Animator animator, AnimatorStateInfo stateInfo, int layerIndex) |
Public Member Functions inherited from State | |
| bool | IsActiveState () |
| Provides a check, whether this state is the current active state in the State Machine. | |
| override void | OnStateMachineEnter (Animator animator, int stateMachinePathHash) |
| Used to set references between SM and states. More... | |
| override void | OnStateEnter (Animator animator, AnimatorStateInfo stateInfo, int layerIndex) |
| Extends the normal OnStateEnter function with state tracking for the containing SM. More... | |
Public Attributes inherited from State | |
| new string | name |
| Name of the state, to be set exactly as in the Animator View! | |
| List< string > | triggers |
| Names of outgoing transitions allowed for the state, set as in Animator! | |
Protected Attributes inherited from NetOverlayState | |
| ui.StdDialog | netOverlayRef |
| NetStateMachine | netSM |
| Correctly shadows the simple 'StateMachine' member of 'State'. | |
Protected Attributes inherited from State | |
| StateMachine | sm |
| Reference to the State Machine featuring this behaviour. | |
State for joining an existing room; expects to be connected to Master.
Definition at line 6 of file JoinRoomState.cs.
|
inlineprivate |
Sets the transition triggers to advance the NET and UI SMs.
Definition at line 58 of file JoinRoomState.cs.
|
inlineprivate |
This Callback is called if the user presses the cancel button during the join attempt.
The old room has already been left and we are connected to the Master as per the SM. So the expected thing to do is going back to hosting as well.
Definition at line 51 of file JoinRoomState.cs.
|
inlineprivate |
This Callback is called when the client failed to join the new room.
The dialog shall wait for a moment before continuing.
Definition at line 42 of file JoinRoomState.cs.