Exemple #1
0
    /*private void Update()
     * {
     *      if(Input.GetKeyDown(KeyCode.A))
     *      {
     *              EnterMenuState();
     *      }
     *      if (Input.GetKeyDown(KeyCode.B))
     *      {
     *              EnterGameState();
     *      }
     *      if (Input.GetKeyDown(KeyCode.C))
     *      {
     *              EnterSelectionState();
     *      }
     * }*/

    public void EnterMenuState()
    {
        rail.MoveToMenu();
        myState = GameState.Menu;
        menuCanvas.SetActive(true);
        selectionCanvas.SetActive(false);
        gameCanvas.SetActive(false);
    }