Esempio n. 1
0
        void OnGUI()
        {
            // Do autoresizing of GUI layer
            GUIResizer.AutoResize();

            GUI.Label(new Rect(10, 10, 250, 30), "Sea movement cost: 1 point");
            GUI.Label(new Rect(10, 30, 250, 30), "Land movement cost: 10 points");
            GUI.Label(new Rect(10, 50, 250, 30), "Press R to show movement range.");

            if (movePoints > 5 || ((int)Time.time) % 2 != 0)
            {
                GUI.Label(new Rect(10, 80, 250, 30), "Ship move points: " + movePoints);
            }
            if (movePoints < 5)
            {
                GUI.Label(new Rect(10, 100, 250, 30), "Press M to add more move points.");
            }
        }
Esempio n. 2
0
        void OnGUI()
        {
            // Do autoresizing of GUI layer
            GUIResizer.AutoResize();

            if (isSelectingStart)
            {
                GUI.Label(new Rect(10, 10, 160, 30), "Select the starting cell", labelStyle);
            }
            else
            {
                GUI.Label(new Rect(10, 10, 160, 30), "Select the ending cell", labelStyle);
            }

            if (automate)
            {
                GUI.Label(new Rect(10, 30, 160, 30), "Press A again to stop.", labelStyle);
            }
            else
            {
                GUI.Label(new Rect(10, 30, 160, 30), "Or press A to automate.", labelStyle);
                GUI.Label(new Rect(10, 50, 160, 30), "Or press R for range (6) sample.", labelStyle);
            }
        }
Esempio n. 3
0
 void OnGUI()
 {
     // Do autoresizing of GUI layer
     GUIResizer.AutoResize();
     GUI.Label(new Rect(10, 10, 300, 30), "Click 3 or more matching cells to remove them!", labelStyle);
 }