Exemplo n.º 1
0
 public AbsEntity()
 {
     components      = new Components();
     features        = new Features();
     attributes      = new Attributes();
     configs         = new Configs();
     messageRegister = new MessageRegister();
     updateRegister  = new UpdateRegister();
     timerRegister   = new TimerRegister();
 }
Exemplo n.º 2
0
 public static void Init()
 {
     register = new TimerRegister();
     //  TimerManager需要使用update,这里要在updateManager里注册timerManager的update事件
     UpdateManager.RegisterUpdate(OnUpdate);
 }
Exemplo n.º 3
0
 public static void Dispose()
 {
     UpdateManager.UnregisterUpdate(OnUpdate);
     register.Dispose();
     register = null;
 }