public override void Play() { if (networkState == NetworkState.Waiting) { //MasterServer.UnregisterHost(); // TODO Does not unregisters, but prevents updates, appearing as a server with free slots rpcCallSender.Play(); base.Play(); MenuFlowState.From(MenuState.ServerWaiting).Advance(); } }
void OnMouseDown() { MenuFlowState menuFlowState = MenuFlowState.From(CurrentState); switch (Action) { case MenuAction.Advance: menuFlowState.Advance(); break; case MenuAction.GoBack: menuFlowState.GoBack(); break; } }
public override void Play() { base.Play(); MenuFlowState.From(MenuState.ClientWaiting).Advance(); }
protected void advanceMenuFrom(MenuState currentState) { MenuFlowState.From(currentState).Advance(); }