//SPAWN CHARS private void SpawnCharacter() { charsList = new List <CharacterComponent>(); for (int i = 0; i < 3; i++) { CharacterComponent c = Instantiate(charPrefab) as CharacterComponent; c.charType = (CharacterTypeEnum)i; //set the char type to determine prefab c.TeleportTo(Map.rooms[0].GetRandomContentTile()); //get random position in room 0 and place character charsList.Add(c); turnOrders.Enqueue(c.queuePoint, c); c.charId = i; //set player id } //register total of previous positions data based on total char (for follow player) prevCharPosition = new Tile[charsList.Count]; }