Beispiel #1
0
 private void OnStartJump(AnimateStartJumpMessage obj)
 {
     if (obj.gameObject == gameObject)
     {
         A.Play(jumpAnimationStateName);
         A.SetBool(jumpNameBool, true);
         A.SetBool(groundedNameBool, false);
     }
 }
    private void OnStartJump(AnimateStartJumpMessage obj)
    {
        if (obj.gameObject == gameObject)
        {
            A.Play(jumpAnimationName);
            A.SetBool(jumpAnimationBool, true);
            A.SetBool(groundedBool, false);

            MessageAgregator <MsgRequest3dSound> .Publish(new MsgRequest3dSound()
            {
                sfxId  = FayvitSounds.SoundEffectID.XP_Swing03,
                sender = transform
            });
        }
    }