Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     m_difficultyLevel = ApplicationModel.difficulty;
     m_turnState       = ApplicationModel.DeterminePlayerStartState((int)ApplicationModel.playerStart)
         ? ApplicationModel.TurnState.PLAYER
         : ApplicationModel.TurnState.AI;
 }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        m_completedGameBanner.enabled = false;
        m_backToMenu.onClick.AddListener(BackToMenu);
        m_playerStart = ApplicationModel.DeterminePlayerStartState(ApplicationModel.playerStart);

        var idx = 0;

        foreach (Button m_button in m_gamePieces)
        {
            m_button.onClick.AddListener(delegate
            {
                PlayerMove(idx, m_button.GetComponentInChildren <Text>().text);
            });
            idx++;
        }
    }