示例#1
0
        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.SubscribeToEvent("CSComponentAssemblyReference", instance.HandleComponentAssemblyReference);
            instance.SubscribeToEvent("CSComponentLoad", instance.HandleComponentLoad);
            instance.SubscribeToEvent("Update", instance.HandleUpdate);
        }
示例#3
0
        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);
        }