示例#1
0
        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();
        }
示例#2
0
        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();
            }
        }