public override void OnStart()
 {
     base.OnStart();
     enemy = GameObject as AbstractEnemy;
 }
예제 #2
0
 public EnemyExplosionParticleEmitterObject(AbstractEnemy enemy)
 {
     Transform.WorldPosition = enemy.Transform.WorldPosition;
     AddComponent(new ParticleSystemComponent(new ExplosionParticleEmitter(enemy.ExplosionColor),
                                              EXPLOSION_PARTICLE_LIFETIME));
 }
예제 #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));
 }
예제 #4
0
 public EnemyExplosionParticleEmitterObject_BloodBackup(AbstractEnemy enemy)
 {
     Transform.WorldPosition = enemy.Transform.WorldPosition;
 }