using UnityEngine; using System.Collections; public class NavPanel : MonoBehaviour { public void Open() { // GetComponent().Play("PanelShow"); } public void Close() { // GetComponent().Play("PanelHide"); Destroy(this.gameObject); } public void HideAnimationEnd() { Destroy(this.gameObject); } }