public void LaunchPowerUpStars(Player player, bool attackingPowerUp) { Emitter effectEmitter = CreateEffectAtObjectPosition("star-burst", "particle-star", player); effectEmitter.Tints = attackingPowerUp ? _attackPowerUpColours : _defencePowerUpColours; effectEmitter.Activate(); }
public void LaunchEnemyAttack(Player player) { Emitter effectEmitter = CreateEffectAtObjectPosition("attack-hit", "particle-cloud", player); effectEmitter.Tints = _attackHitColours; effectEmitter.Activate(); }
public void LaunchFlagStars(Flag targetFlag) { Emitter effectEmitter = CreateEffectAtObjectPosition("star-burst", "particle-star", targetFlag); effectEmitter.Tints = _checkpointEffectColours; effectEmitter.Activate(); }