public override void OnStart()
 {
     base.OnStart();
     enemy = GameObject as AbstractEnemy;
 }
Example #2
0
 public EnemyExplosionParticleEmitterObject(AbstractEnemy enemy)
 {
     Transform.WorldPosition = enemy.Transform.WorldPosition;
     AddComponent(new ParticleSystemComponent(new ExplosionParticleEmitter(enemy.ExplosionColor),
                                              EXPLOSION_PARTICLE_LIFETIME));
 }
Example #3
0
 protected virtual void SetEnemyPosition(AbstractEnemy enemy)
 {
     enemy.Transform.WorldPosition = new Vector2(
         POSITION_GENERATOR.NextFloat(-PlayScene.FIELD_WIDTH / 2, PlayScene.FIELD_WIDTH / 2),
         POSITION_GENERATOR.NextFloat(-PlayScene.FIELD_HEIGHT / 2, PlayScene.FIELD_HEIGHT / 2));
 }
Example #4
0
 public EnemyExplosionParticleEmitterObject_BloodBackup(AbstractEnemy enemy)
 {
     Transform.WorldPosition = enemy.Transform.WorldPosition;
 }