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