internal static void Initialize() { instance = new CSComponentCore(); instance.SubscribeToEvent("CSComponentAssemblyReference", instance.HandleComponentAssemblyReference); instance.SubscribeToEvent("CSComponentLoad", instance.HandleComponentLoad); instance.SubscribeToEvent("Update", instance.HandleUpdate); }
internal static void Initialize() { instance = new CSComponentCore(); instance.ParseComponents(); instance.SubscribeToEvent("CSComponentLoad", instance.HandleComponentLoad); instance.SubscribeToEvent("Update", instance.HandleUpdate); // PhysicsPreStep gets mapped to FixedUpdate instance.SubscribeToEvent("PhysicsPreStep", instance.HandlePhysicsPreStep); instance.SubscribeToEvent("PostUpdate", instance.HandlePostUpdate); }