Exemplo n.º 1
0
            public IState OnStateUpdate()
            {
                if (Input.IsKeyDown(Aiv.Fast2D.KeyCode.Space))
                {
                    this.OnStateExit();
                    if (mainMenu.GetComponent <UpdateMenu>().SinglePlayerMode)
                    {
                        SinglePlayerMode.OnStateEnter();
                        return(SinglePlayerMode);
                    }
                    else if (!mainMenu.GetComponent <UpdateMenu>().SinglePlayerMode)
                    {
                        Lobby.OnStateEnter();
                        return(Lobby);
                    }
                }

                return(this);
            }
Exemplo n.º 2
0
 public void StartOnePlayerGame()
 {
     EnforceNoStartingWhileGameInProgress();
     modeInternalProperty = new SinglePlayerMode(GetAllBalls(), GetAllPockets());
 }