FragMate CommunityLog in

FragMate - Software and Game Developer Community, including Resources, Forums, Marketplace & More.

Share

descriptionAnimation problem

more_horiz
Hello guys I have a problem with animation when I press key who have animation it all stops I don't know what to do please help

descriptionRe: Animation problem

more_horiz
Try this:

Code:



using UnityEngine;
using System.Collections;

public class AnimationScript : MonoBehaviour {
   void Update(){
      if (Input.GetKeyDown (KeyCode.K)) {
         animation.Play("Walking animation", AnimationPlayMode);
            }
   }
   
}


Permissions in this forum:
You cannot reply to topics in this forum