123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using UnityEngine;
- using System.Collections;
- public class AniEvent : MonoBehaviour {
- private GameObject mMoviePanel = null;
- private GameObject mMovieObject = null;
- public delegate void PlayFinishCallback(GameObject go = null);
- public PlayFinishCallback pfcb = null;
- public PlayFinishCallback closecb = null;
- public void PlayFinish()
- {
- Debug.Log("PlayFinish");
- //PanelHelper.Instance.ShowPanel("UI_NewLoginWindow",(ab) =>
- //{
- // //// 关闭Loading
- // mMovieObject = GameObject.Find("MovieWindow");
- // mMoviePanel = mMovieObject.transform.Find("Movie").gameObject;
- // mMoviePanel.SetActive(false);
- //});
- if(pfcb != null)
- {
- pfcb();
- pfcb = null;
- }
- if(closecb != null)
- {
- closecb();
- closecb = null;
- }
- }
- // Use this for initialization
- void Start () {
-
- }
-
- // Update is called once per frame
- void Update () {
-
- }
- }
|