예제 #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;
		}
예제 #2
0
 void Awake()
 {
     singleton = this;
 }