NavPanel.cs 338 B

123456789101112131415161718192021222324
  1. using UnityEngine;
  2. using System.Collections;
  3. public class NavPanel : MonoBehaviour
  4. {
  5. public void Open()
  6. {
  7. // GetComponent<Animator>().Play("PanelShow");
  8. }
  9. public void Close()
  10. {
  11. // GetComponent<Animator>().Play("PanelHide");
  12. Destroy(this.gameObject);
  13. }
  14. public void HideAnimationEnd()
  15. {
  16. Destroy(this.gameObject);
  17. }
  18. }