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

            enemy.DependencyInjectHealth(healthPoint);

            return(enemy);
        }
Exemplo n.º 2
0
 public void DependencyInjectHealth(HealthPoint healthPoint)
 {
     HealthPoint = healthPoint;
 }