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