WXMC/.svn/pristine/67/671483e34059a4176258d42602b50e07a436a826.svn-base
2024-12-04 16:18:46 +08:00

24 lines
578 B
Plaintext

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class WishRing : MonoBehaviour
{
/* Please check the corresponding WishGodPageUI object to see how WishRing button is given a drawlot function */
private Animator anim;
private Button button;
void Start()
{
anim = GetComponentInChildren<Animator>();
button = GetComponentInChildren<Button>();
button.onClick.AddListener(onClickSwag);
}
public void onClickSwag()
{
anim.SetTrigger("isSwinging");
}
}