Example #1
0
 static void Loop()
 {
     if (actLst != null && actLst.Count > 0)
     {
         lock (actLst) {
             CoroutineWrapper.EXEF(1, actLst[0]);
             actLst.RemoveAt(0);
         }
     }
 }
Example #2
0
 public virtual void DisposeSelf()
 {
     Hide(LastArg);
     if (OnViewDisposeEvent != null)
     {
         OnViewDisposeEvent(this);
     }
     CoroutineWrapper.EXEF(1, () => {
         if (parent != null)
         {
             parent.RemoveChild(this);
         }
         if (this != null && gameObject != null)
         {
             DestroyImmediate(gameObject);
         }
     });
 }