예제 #1
0
 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();
     }
 }
예제 #2
0
    void OnMouseDown()
    {
        MenuFlowState menuFlowState = MenuFlowState.From(CurrentState);

        switch (Action)
        {
        case MenuAction.Advance:
            menuFlowState.Advance();
            break;

        case MenuAction.GoBack:
            menuFlowState.GoBack();
            break;
        }
    }
예제 #3
0
 public override void Play()
 {
     base.Play();
     MenuFlowState.From(MenuState.ClientWaiting).Advance();
 }
예제 #4
0
	protected void advanceMenuFrom(MenuState currentState)
	{
		MenuFlowState.From(currentState).Advance();
	}