Пример #1
0
 public static void DestroyTimelineAssetEffectInstance(PlayableDirector instance, bool clearFightContext)
 {
     if (clearFightContext)
     {
         TimelineContextUtility.ClearFightContext(instance);
     }
     TimelineContextUtility.ClearContextProvider(instance);
     instance.set_playableAsset(null);
     if (null != s_instance)
     {
         s_timelineAssetEffectPool.Release(instance.get_gameObject());
     }
     else
     {
         Object.Destroy(instance.get_gameObject());
     }
 }