Ejemplo n.º 1
0
		public string[,] resetGame(int gameSize, string[,] gameBoard){
			if (hasInit)
				destroyOldBoard ();
			hasInit = true;
			moveCounter = 0;
			boardSize = gameSize;

			AgentCamera.initCamera (boardSize);
			bgTiles = new GameObject[boardSize, boardSize];

			currentBoard = new string[gameSize, gameSize];
			generateBackground ();
			generateMap (gameBoard);
			thePlayer.init (finishedMove, wonGame, pickups, playerStartPos, blockedSquares, this);

			return currentBoard;
		}
Ejemplo n.º 2
0
 void Awake()
 {
     singleton = this;
 }