Esempio n. 1
0
 public override TaskStatus OnUpdate()
 {
     _instantiator.InstantiateEnemy(Enemy.Value, SpawnTarget.Value, StartTarget.Value);
     return(TaskStatus.Success);
 }
Esempio n. 2
0
 private GameObject SpawnEnemy(Enemy enemy)
 {
     return(_instantiator.InstantiateEnemy(enemy.name, new Vector2(enemy.spawnLocation[0], enemy.spawnLocation[1]),
                                           new Vector2(enemy.targetLocation[0], enemy.targetLocation[1])));
 }