Пример #1
0
        public void Initialize(ACGameBoard gameBoard, Vector2Int intPosition)
        {
            this.gameBoard = gameBoard;
            currentPostion = intPosition;

            MoveTo(currentPostion, true);
        }
Пример #2
0
        // 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);
        }