Exemplo n.º 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();
     }
 }
Exemplo n.º 2
0
    void OnMouseDown()
    {
        MenuFlowState menuFlowState = MenuFlowState.From(CurrentState);

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

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