public Enemy Create(HealthPoint healthPoint)
        {
            var enemy = Object.Instantiate(Resources.Load <Asteroid>("Enemy/Asteroid"));

            enemy.DependencyInjectHealth(healthPoint);

            return(enemy);
        }
Beispiel #2
0
 public void DependencyInjectHealth(HealthPoint healthPoint)
 {
     HealthPoint = healthPoint;
 }