TKK_E32231768/Assets/btn_animation.cs

18 lines
319 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class btn_animation : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
public void button_touch()
{
GetComponent<Animation>().Play("click_anim");
}
}