Example #1
0
 /*Function: SwitchPlayingState
  * Purpose: To switch between states
  *
  * arguments: tempState
  *
  * Description: Take state argument and assign to current playing State
  */
 private void SwitchPlayingState(PLAYINGSTATES tempState)
 {
     currentGstate = tempState;
     enterState = true;
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        //fix this after testing to proper start states
        currentMstate = MAINSTATES.menu;
        currentGstate = PLAYINGSTATES.playerTurn;

        //create memory for the gamestate containeers
        gameImageBlocks = new List<GameObject>();
        guessedLetters = new List<char>();
        currentWord = new WordLibEntry();
        highScores = new List<LeaderBoardEntry>();

        StartCoroutine(LoadHighScores());

        CreateGameImage();
        LoadGameImage();
        SetGameImageActive(false);

        enterState = false;
        playAgain = PLAYAGAINFLAG.notSelected;
        gameType = NEWGAMETYPE.newGame;

        SwitchMainState(MAINSTATES.menu);
        //SwitchPlayingState(PLAYINGSTATES.newGame);
    }