Пример #1
0
    // Use this for initialization
    void Start()
    {
        //push instance to static
        s_instance = this;

        //get helper script references
        m_gameboard = TTT_Gameboard.GetInstance();

        //initialize the game history data
        m_game_history = new GameHistory();
        m_game_history.Initialize();

        //begin by selecting the marks each player will use
        m_player_mark_sprites = new Sprite[NUMBER_OF_PLAYERS];
        selectPlayerMarks();
    }
Пример #2
0
 private void Start()
 {
     //cache a ref for later use
     m_game_manager = TTT_GameManager.GetInstance();
 }
Пример #3
0
 public void onPlayAgain()
 {
     dismissModal();
     TTT_GameManager.GetInstance().playAgain();
 }
Пример #4
0
 public override void onExitAnimationCompleted()
 {
     TTT_GameManager.GetInstance().reportSelectedMark(m_mark_sprites[m_selected_sprite_index]);
 }