Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class mecanimSpartan : MonoBehaviour {
- public Animator animacao;
- void Update (){
- if(Input.GetMouseButtonDown(0))
- animacao.SetInteger("parametro", 1);
- if(Input.GetMouseButtonUp(0))
- animacao.SetInteger("parametro", 0);
- if(Input.GetButton("Horizontal") || Input.GetButton("Vertical"))
- animacao.SetInteger("corrida", 3);
- else
- animacao.SetInteger("corrida", 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement