123456789101112131415161718192021 |
- using UnityEngine;
- using System.Collections;
- public class Panel : MonoBehaviour
- {
- public void Open()
- {
- GetComponent<Animator>().Play("PanelShow");
- }
- public void Close()
- {
- GetComponent<Animator>().Play("PanelHide");
- }
-
- public void HideAnimationEnd()
- {
- Destroy(this.gameObject);
- }
- }
|