using System.Collections; using System.Collections.Generic; using UnityEngine; public class Machine : MonoBehaviour { public Animator animations; void Start() { animations = GetComponent(); } void Update() { if (Input.GetKey(KeyCode.A)) { Debug.Log("Ö´ÐÐ"); animations.SetTrigger("Read"); } } }