//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); }
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>(); }