RosimInc 7c4cef3a49 Added the word solving system.
Bug: After a player finishes the game, application will crash. Make sure winning scenario is handled.
Gameplay scene is gameplay_02.unity.
2016-01-30 19:30:39 -05:00

26 lines
537 B
C#

using UnityEngine;
using System.Collections;
public class GameState {
private static GameState instance = new GameState();
public static GameState Instance { get { return instance; } }
public LevelManager currentLevel = null;
public int numPlayers = 3;
public int wordLength = 5;
public int numRows = 6;
public int numColumns = 5;
public Player[] players;
private GameState()
{
players = new Player[numPlayers];
for (int i = 0; i < numPlayers; i++)
{
players[i] = new Player(i+1);
}
}
}