private void SpawnBattler(int _prefabIndex, BattlerPosition _pos, Battler.Alliance _alliance) { GameObject spawn = MasterDatabase.MasterData.battlerPrefabs[_prefabIndex]; GameObject.Instantiate(spawn); //spawn.GetComponent<Battler>().position = _pos; //spawn.GetComponent<Battler>().alliance = _alliance; //spawn.name = "Battler " + numberOfBattlers.ToString(); numberOfBattlers++; }