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().Play("click_anim"); } }