示例#1
0
 static void RunDemo()
 {
     using (Demo demo = new SoftDemo())
     {
         demo.Run();
     }
 }
示例#2
0
 static void Main()
 {
     using (Demo demo = new SoftDemo())
     {
         GraphicsLibraryManager.Run(demo);
     }
 }
示例#3
0
 static void Main()
 {
     using (Demo demo = new SoftDemo())
     {
         GraphicsLibraryManager.Run(demo);
     }
 }
示例#4
0
 static void Main()
 {
     using (Demo demo = new SoftDemo())
     {
         LibraryManager.Initialize(demo);
     }
 }
示例#5
0
 static void RunGame()
 {
     using (SoftDemo game = new SoftDemo())
     {
         game.Run();
     }
 }
 void OnGUI()
 {
     if (GUILayout.Button("Demo List", GUILayout.MinWidth(120), GUILayout.MinHeight(44)))
     {
         showDemoNames = !showDemoNames;
     }
     if (showDemoNames)
     {
         GUILayout.BeginHorizontal(GUILayout.Width(1000));
         GUILayout.BeginVertical("box", w);
         int counter = 0;
         for (int j = 0; j < demoNames.Length; j++)
         {
             if (GUILayout.Button(demoNames[j], GUILayout.MinWidth(100), GUILayout.MinHeight(44)))
             {
                 if (demo != null)
                 {
                     demo.ExitPhysics();
                 }
                 RunDemo(demoNames[j]);
             }
             counter++;
             if (counter > 0 && counter % maxPerCol == 0)
             {
                 GUILayout.EndVertical();
                 GUILayout.BeginVertical("box", w);
             }
         }
         GUILayout.EndVertical();
         GUILayout.BeginVertical("box", w);
         if (demo is SoftDemo.SoftDemo)
         {
             SoftDemo.SoftDemo sd = (SoftDemo.SoftDemo)demo;
             SoftDemo.SoftDemo.DemoConstructor[] sdemos = sd.demos;
             for (int j = 0; j < sdemos.Length; j++)
             {
                 string nm = sdemos[j].Method.Name;
                 if (GUILayout.Button(nm, GUILayout.MinWidth(100), GUILayout.MinHeight(44)))
                 {
                     sd.demo = j;
                     sd.ClientResetScene();
                 }
                 counter++;
                 if (counter > 0 && counter % maxPerCol == 0)
                 {
                     GUILayout.EndVertical();
                     GUILayout.BeginVertical("box", w);
                 }
             }
         }
         GUILayout.EndVertical();
         GUILayout.EndHorizontal();
     }
 }
示例#7
0
        static void Main()
        {
            if (LibraryTest.Test() == false)
            {
                return;
            }

            using (Demo demo = new SoftDemo())
            {
                demo.Run();
            }
        }
示例#8
0
文件: SoftDemo.cs 项目: diqost/bullet
        static void Main()
        {
            if (LibraryTest.Test() == false)
            {
                return;
            }

            using (SoftDemo game = new SoftDemo())
            {
                game.Run();
            }
        }
示例#9
0
        static void Main()
        {
            if (LibraryTest.Test() == false)
                return;

            using (Demo demo = new SoftDemo())
            {
                demo.Run();
            }
        }
示例#10
0
 static void RunDemo()
 {
     using (Demo demo = new SoftDemo())
     {
         demo.Run();
     }
 }
示例#11
0
 static void RunGame()
 {
     using (SoftDemo game = new SoftDemo())
     {
         game.Run();
     }
 }