Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink
Share
Go down
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 1454
Rep : 0
Join date : 2014-08-01
View user profile

Animation problem

on Wed Aug 06, 2014 11:57 am
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
Member [Lv. 3]
Member [Lv. 3]
Posts : 37
Points : 1642
Rep : 19
Join date : 2014-06-14
View user profile

Re: Animation problem

on Wed Aug 13, 2014 2:54 pm
Try this:
Code:


using UnityEngine;
using System.Collections;

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


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