// 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(); }
private void Start() { //cache a ref for later use m_game_manager = TTT_GameManager.GetInstance(); }
public void onPlayAgain() { dismissModal(); TTT_GameManager.GetInstance().playAgain(); }
public override void onExitAnimationCompleted() { TTT_GameManager.GetInstance().reportSelectedMark(m_mark_sprites[m_selected_sprite_index]); }