public void CreateBattlefiledTileHorizontal(int posX, int posY, BattlefieldTile battlefieldTile)
        {
            Vector2    position  = new Vector2(boardHolderPosX + posX * tileHeight, boardHolderPosY + posY * tileWidth);
            GameObject goAuxTile = Instantiate(tilePrefab, position, Quaternion.identity);

            battlefieldTile.SetGoAnimContainer(new GameObjectAnimatorContainer(goAuxTile, goAuxTile.GetComponent <Animator>()));
        }
Exemplo n.º 2
0
        private void CreateBattlefiledTile(int posX, int posY)
        {
            Vector3         realWorldPosition = board2DManager.GetGridObjectRealWorldPositionByArrayPosition(posX, posY);
            BattlefieldTile battlefieldTile   = new BattlefieldTile(realWorldPosition, posX, posY);

            GridArray[posX, posY] = battlefieldTile;
            board2DManagerUI.CreateBattlefiledTileHorizontal(posX, posY, battlefieldTile);
        }