public void Initialize(ACGameBoard gameBoard, Vector2Int intPosition) { this.gameBoard = gameBoard; currentPostion = intPosition; MoveTo(currentPostion, true); }
// Use this for initialization void Start() { gameBoard = ACGameBoardManager.Instance.CreateGameBoard(); gameBoard.CreateCubes(ACGameSetting.Instance.boardCount); player = ACPlayerManager.Instance.CreatePlayer(); player.Initialize(gameBoard, ACGameSetting.Instance.playerInitPos); }