private void Start() { Game.EntityEventManager.Register("Model", typeof(Game).Assembly); Game.EntityEventManager.Register("Controller", DllHelper.GetController()); Game.Scene.AddComponent <EventComponent>().Run(EventIdType.InitSceneStart); }
private void Start() { BsonClassMapRegister.Register(); Object.ObjectManager.Register("Base", typeof(Game).Assembly); Object.ObjectManager.Register("Model", typeof(Init).Assembly); Object.ObjectManager.Register("Controller", DllHelper.GetController()); Game.Scene.AddComponent <EventComponent>().Run(EventIdType.InitSceneStart); }