Example #1
0
 public static void ReleaseTimeline(GTimeline tl)
 {
     if (tl == null)
     {
         return;
     }
     tl.Destroy();
     GTimelineFactory.ReleaseEvent(tl);
 }
Example #2
0
 public void Destroy()
 {
     if (mStyle == null)
     {
         return;
     }
     this.mData  = null;
     this.mStyle = null;
     this.root   = null;
     this.ower   = null;
     for (int i = 0; i != _events.Count; ++i)
     {
         _events[i].Destroy();
     }
     _events.Clear();
     OnDestroy();
     GTimelineFactory.ReleaseEvent(this);
 }