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; }
void Awake() { singleton = this; }