Exemplo n.º 1
0
 /// <summary>
 /// Set Json Auxiliary file | 置入Json辅助文件
 /// </summary>
 /// <param name="json_str"></param>
 /// <returns></returns>
 public IAniPlayer SetAniJson(string json_str)
 {
     if (string.IsNullOrEmpty(json_str))
     {
         throw new ArgumentNullException();
     }
     mTimelineModel = JsonUtility.FromJson <Model.AniTimelineModel>(json_str);
     return(this);
 }
Exemplo n.º 2
0
 public void Destory()
 {
     mIsDestroy     = true;
     mTimelineModel = null;
     mAsset         = null;
     mStagePrefab   = null;
     mName          = string.Empty;
     GameObject.Destroy(mPlayerBaseGo);
     mPlayerBaseGo          = null;
     mStageGameObject       = null;
     mAniDirector           = null;
     mCallback_OnPlayFinish = null;
     mCallback_OnReady1     = null;
     mCallback_OnReady2     = null;
 }