/// <summary> /// Spawns a single ally /// </summary> /// <param name="ally"></param> /// <returns></returns> public GameObject SpawnAlly(BattleEntityInfo ally) { return(Spawn(ally, _arena.NextAllySpawn)); }
/// <summary> /// Spawns a single enemy /// </summary> /// <param name="enemy"></param> /// <returns></returns> public GameObject SpawnEnemy(BattleEntityInfo enemy) { return(Spawn(enemy, _arena.NextEnemySpawn)); }
/// <summary> /// Spawns the entity <paramref name="entity"/> at <paramref name="spawnInfo"/> /// </summary> /// <param name="entity"></param> /// <param name="spawnInfo"></param> /// <returns></returns> public GameObject Spawn(BattleEntityInfo entity, SpawnInfo spawnInfo) { return(Configure(entity.Instantiate(), spawnInfo)); }