U3D_TobaccoWarehouseISMDTSy.../Assets/Scripts/Testone.cs

31 lines
567 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Testone : MonoBehaviour
{
public Animator Animation;
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.A))
{
//Animation.speed = 1;
Animation.SetBool("²ð·Ö", true);
}
if (Input.GetKeyDown(KeyCode.B))
{
Animation.speed = -1;
}
}
IEnumerator Test()
{
yield return new WaitForSeconds(1);
}
}