using UnityEngine;
using System.Collections;public class NewBehaviourScript : MonoBehaviour {
Animator animator ;
void Start ()
{
animator = GetComponent();
}
void OnGUI()
{
if(GUILayout.Button("attack"))
{
animator.Play("attack");
}
if(GUILayout.Button("Run"))
{
animator.Play("Run");
}
}
}