using DG.Tweening; using System.Collections; using System.Collections.Generic; using UnityEngine; public class test : MonoBehaviour { // Start is called before the first frame update void Start() { UIManager.AddEvent(transform.Find("Button").gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, b => { transform.Find("Container").GetComponent().startAnimation(0.5f, () => { }).Play(); }); UIManager.AddEvent(transform.Find("BtnUp").gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, b => { transform.Find("Container").GetComponent().startAnimation(0.5f, () => { },1).Play(); }); } // Update is called once per frame void Update() { } }