How would i make this script work for playing animations without keyboard keys?
using UnityEngine;
using System.Collections;
public class startanim : MonoBehaviour {
public AnimationClip Armature;
}
// Use this for initialization
void Start () {
animation.Play(" ArmatureAction ");
}
}
// Update is called once per frame
void Update () {
}
}
The players enters the trigger (or whatever you want)
The script finds Character Controller
It disables the controls
After the anim it enables the controls again.