45 lines
737 B
C#
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);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|