示例#1
0
        // called by native code
        public static void NETUpdate(float timeStep)
        {
            GC.Collect();
            GC.WaitForPendingFinalizers();
            GC.Collect();
            ReleaseExpiredNativeReferences();

            ComponentCore.Update(timeStep);
        }
示例#2
0
        public void Destroy()
        {
            if (Node != null)
            {
                Node.RemoveComponent(this);
            }

            // if we're a CSComponent notify ComponentCore
            ComponentCore.DestroyComponent(this);
        }
示例#3
0
 static void CSComponentCallMethod(uint componentID, CSComponentMethod method, float value)
 {
     ComponentCore.CallComponentMethod(componentID, method, value);
 }
示例#4
0
 static IntPtr CSComponentCreate(string name)
 {
     return(ComponentCore.CreateCSComponent(name));
 }
示例#5
0
 public static void RegisterAssemblyComponents(Assembly assembly)
 {
     ComponentCore.RegisterAssemblyComponents(assembly);
 }