_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Scene_main/main_BaseShowPanel.cs
2024-11-27 11:25:42 +08:00

24 lines
517 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
//显示动画
public class main_BaseShowPanel : MonoBehaviour
{
[Header("父类自动的panel按需要给")]
public GameObject _panel;
public void showPanel(GameObject panel)
{
if (panel == null)
{
Debug.LogError("panel==null");
return;
}
panel.transform.localScale = new Vector3(0.5f, 0.5f, 0.5f);
panel.transform.DOScale(1f, 0.8f);
}
}