Beispiel #1
0
        private void OnKicked()
        {
            // Stop Idle Animation
            Owner.BodyAnimator.Play(AnimState.None.ToString());
            Owner.BodySprite.sprite = _config.LaunchSprite;

            // Play Particle Effect
            _particleService.PlayAt(_config.PfxKick, Owner.EffectSlotKick.position);

            _listenForImpacts = true;
        }
 // Attempts to play the attached Particle Effect
 protected void TryPlayParticleEffect()
 {
     if (particleEffect != null)
     {
         ParticleService.PlayAt(particleEffect, transform.position);
     }
 }
Beispiel #3
0
 public void PlayKickSwooshEffect()
 {
     _particleService.PlayAt(_pfxKickSwoosh, _pfxSlotKickSwoosh.position);
 }