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