Esempio n. 1
0
 public void Start(GameObject sequencer, GameObject mainRole, GameObject camera, SequenceManager.CGPlayComplete callFunc, string taskId = "")
 {
     if (this.mMovie == null)
     {
         this.mCallFunc = callFunc;
         this.RoleModel = mainRole;
         this.mCamera   = camera;
         this.mTaskId   = taskId;
         this.misEditor = false;
         if (sequencer != null)
         {
             USSequencer component = sequencer.GetComponent <USSequencer>();
             if (component != null)
             {
                 this.PlayMovie(component);
             }
         }
     }
 }
Esempio n. 2
0
 private void OnMoviePlayFinished(USSequencer sequencer)
 {
     this.misEditor = true;
     if (this.mCallFunc != null)
     {
         this.mCallFunc(this.mTaskId, this.RoleModel);
         this.mCallFunc = null;
     }
     if (this.mMovie != null)
     {
         UnityEngine.Object.Destroy(this.mMovie.gameObject);
         this.mMovie = null;
     }
     if (this.mCallFunAction != null)
     {
         this.mCallFunAction();
         this.mCallFunAction = null;
     }
     this.Clear();
 }