public virtual void Disable()
 {
     if (updates.HasFlag(UpdateEvents.BeforeRender) || updates.HasFlag(UpdateEvents.Once))
     {
         Application.onBeforeRender -= this.UpdateAction;
     }
     if (updates.HasFlag(UpdateEvents.FixedUpdate))
     {
         EventCaller.RemoveFixedUpdate(this.UpdateAction);
     }
 }
 public BasicAction(UpdateEvents _updates)
 {
     updates = _updates;
     if (updates.HasFlag(UpdateEvents.BeforeRender) || updates.HasFlag(UpdateEvents.Once))
     {
         Application.onBeforeRender += this.UpdateAction;
     }
     if (updates.HasFlag(UpdateEvents.FixedUpdate))
     {
         EventCaller.AddFixedUpdate(this.UpdateAction);
     }
     //UpdateAction();
 }