Ejemplo n.º 1
0
    //same as createMap but for loading the game
    private MapCreatorBattle Deserialize(Vector3 pos, bool mine, string _text)
    {
        MapCreatorBattle map = CreateMap(pos);

        map.Initiate(_text, mine);
        return(map);
    }
Ejemplo n.º 2
0
    public void Initiate(bool[,] _myMap, bool[,] _enemyMap)
    {
        myMap = CreateMap(new Vector3(-6, 0, 0));
        myMap.Initiate(_myMap, true);

        enemyMap = CreateMap(new Vector3(6, 0, 0));
        enemyMap.Initiate(_enemyMap, false);

        gameState = GameState.MyTurn;

        selectedTile = new List <BattleTile>();
    }