Example #1
0
 public void Schedule(System.Action <ISPAnim> callback)
 {
     if (_scheduler == null)
     {
         _scheduler = new AnimEventScheduler(this);
     }
     _scheduler.Schedule(callback);
 }
Example #2
0
 public void Schedule(System.Action <ISPAnim> callback, float timeout, ITimeSupplier supplier)
 {
     if (_scheduler == null)
     {
         _scheduler = new AnimEventScheduler(this);
     }
     _scheduler.Schedule(callback, timeout, supplier);
 }
Example #3
0
 public void Dispose()
 {
     if (_scheduler != null)
     {
         _scheduler.Dispose();
         _scheduler = null;
     }
     _controller = null;
     _routine    = null;
 }
Example #4
0
 public void Schedule(Action <ISPAnim> callback, float timeout, ITimeSupplier time)
 {
     if (_state == null)
     {
         throw new System.ObjectDisposedException("ISPAnim");
     }
     if (_scheduler == null)
     {
         _scheduler = new AnimEventScheduler(this);
     }
     _scheduler.Schedule(callback, timeout, time);
 }
Example #5
0
 public void Schedule(Action <ISPAnim> callback)
 {
     if (_state == null)
     {
         throw new System.ObjectDisposedException("ISPAnim");
     }
     if (_scheduler == null)
     {
         _scheduler = new AnimEventScheduler(this);
     }
     _scheduler.Schedule(callback);
 }
Example #6
0
 public void Dispose()
 {
     if (_scheduler != null)
     {
         _scheduler.Dispose();
         _scheduler = null;
     }
     if (_state != null)
     {
         _state.OnStop();
     }
     _controller = null;
     _state      = null;
 }
Example #7
0
 public InUpdateInfo(AnimEventScheduler s, bool add)
 {
     this.Scheduler = s;
     this.Add       = add;
 }