예제 #1
0
 void OnGUI()
 {
     LogicGlobal.GlobalGUI();
     GUILayout.Label("Simple persistent rope test (procedural rope and linkedobjects rope)");
     GUILayout.Label("Move the mouse while holding down the left button to move the camera");
     GUILayout.Label("Use the spacebar to shoot balls and aim for the ropes to test the physics");
 }
예제 #2
0
파일: LogicLamp.cs 프로젝트: izzarra/Humani
 void OnGUI()
 {
     LogicGlobal.GlobalGUI();
     GUILayout.Label("Lamp rope physics test (procedural rope linked to a dynamic object)");
     GUILayout.Label("Move the mouse while holding down the left button to move the camera");
     GUILayout.Label("Use the spacebar to shoot balls and aim for the lamp to test the physics");
 }
예제 #3
0
    void OnGUI()
    {
        LogicGlobal.GlobalGUI();
        GUILayout.Label("Breakable rope test (procedural rope and linkedobjects rope with breakable properties and notifications set)");
        GUILayout.Label("Move the mouse while holding down the left button to move the camera");
        GUILayout.Label("Use the spacebar to shoot balls and aim for the ropes to break them");

        Color colGUIColor = GUI.color;

        GUI.color = new Color(255, 0, 0);
        if (bBroken1)
        {
            GUILayout.Label("Rope 1 was broken");
        }
        if (bBroken2)
        {
            GUILayout.Label("Rope 2 was broken");
        }
        GUI.color = colGUIColor;
    }
예제 #4
0
 void OnGUI()
 {
     LogicGlobal.GlobalGUI();
     GUILayout.Label("Rope test (Procedural rope with additional coil)");
     GUILayout.Label("Use the keys i and o to extend the rope");
 }