Cute_demon_attacks/meng_yao/Assets/script/HeadTanchuang.cs
2024-11-13 17:58:34 +08:00

45 lines
737 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
public class HeadTanchuang : MonoBehaviour
{
public GameObject AvatarPanel;
public Button Avatarbtn;
public RectTransform AvatarRect;
Vector3 Deflate = new Vector3(0.5f, 0.5f, 0.5f);
public Transform canvas;
private void Awake()
{
}
void Start()
{
Avatarbtn.onClick.AddListener(Display_pop_up_window);
AvatarPanel.gameObject.SetActive(false);
}
private void Display_pop_up_window()
{
AvatarPanel.gameObject.SetActive(true);
}
public void CloseClick()
{
AvatarPanel.gameObject.SetActive(false);
}
}