Example #1
0
    void Update()
    {
        switch (gameState)
        {
        case GameState.Paused:
            if (true)               // Testing purposes - SHOULD give options here.
//				player.GetComponent<Player>().BuildPlayer();
            {
                combatManager = new CombatManager(this);
                combatManager.StartCombat();
                gameState = GameState.SetupBattlefield;
            }
            break;

        case GameState.SetupBattlefield:
            if (!gridSetup)
            {
                this.GetComponent <GridManager> ().SetupScene("HexTiles/GrassTiles");
                gridSetup = true;
            }
            gameState = GameState.Combat;
            break;

        case GameState.Combat:
//			currentCharacter = combatManager.currentCharacter;
            combatManager.CheckCombat();
            break;
        }
    }