public void TriggerEffect(float x, float y, float rotation) { X = x; Y = y; RotationZ = rotation; SinkSprite.CurrentFrameIndex = 0; SinkSprite.Visible = true; ExplodeSprite.CurrentFrameIndex = 0; ExplodeSprite.Visible = true; smokeMed.Emit(); smokeSmall.Emit(); }
public void TriggerEffect(float x, float y, float rotation) { X = x; Y = y; RotationZ = rotation; if (IsGroundHit) { Z = 5; groundShotMissEmitter.Emit(); } else { Z = 0; waterShotMissSprayEmitter.Emit(); waterShotMissWakeEmitter.Emit(); } }