Example #1
0
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        GUITest window = (GUITest)EditorWindow.GetWindow(typeof(GUITest));

        window.Show();
    }
Example #2
0
 void Awake()
 {
     mainScipt = main.GetComponent<GUITest>();
     mood = 0.0f;
     animed = false;
     prevDist = 1000;
 }
Example #3
0
    // Use this for initialization
    void Start()
    {
        enemyTags.Add ("Enemy1");
        enemyTags.Add ("Enemy2");
        enemyTags.Add ("Enemy3");
        enemyTags.Add ("Enemy4");

        mySpaw = FindObjectOfType<Spawn> ();
        board = FindObjectOfType<GUITest>();
    }
Example #4
0
    static void GUITest()
    {
        AttachMyGUIBehavior();
        GUITest myGUI = new GUITest();

        myGUI.AddGUICall(DrawWindow2, MyGUI.GUICallPriority.top);
        myGUI.AddGUICall(DrawGrids, MyGUI.GUICallPriority.top);
        myGUI.AddGUICall(DrawWindow3, MyGUI.GUICallPriority.top);
        myGUI.AddGUICall(DrawWindow4, MyGUI.GUICallPriority.top);
        myGUI.AddGUICall(myGUI.DrawWindow, MyGUI.GUICallPriority.background);

        MyGUIBehavior.Instance.AddMyGUI(layerID++, myGUI);

        myGUI.AddGUICall(myGUI.PrintFPS, MyGUI.GUICallPriority.top);
    }
Example #5
0
    static void RemoveGUITest()
    {
        AttachMyGUIBehavior();

        for (int i = 0; i < layerID; i++)
        {
            MyGUI myGUI = MyGUIBehavior.Instance.GetMyGUI(i);
            if (myGUI == null)
            {
                continue;
            }

            if (myGUI is GUITest)
            {
                GUITest guiTest = (GUITest)myGUI;
                myGUI.RemoveGUICall(guiTest.DrawWindow, MyGUI.GUICallPriority.background);
            }
        }
    }
Example #6
0
 void Awake()
 {
     mainScipt = main.GetComponent<GUITest>();
 }
    static void GUITest()
    {
        AttachMyGUIBehavior();
        GUITest myGUI = new GUITest();
        myGUI.AddGUICall(DrawWindow2, MyGUI.GUICallPriority.top);
        myGUI.AddGUICall(DrawGrids, MyGUI.GUICallPriority.top);
        myGUI.AddGUICall(DrawWindow3, MyGUI.GUICallPriority.top);
        myGUI.AddGUICall(DrawWindow4, MyGUI.GUICallPriority.top);
        myGUI.AddGUICall(myGUI.DrawWindow, MyGUI.GUICallPriority.background);

        MyGUIBehavior.Instance.AddMyGUI(layerID++, myGUI);

        myGUI.AddGUICall(myGUI.PrintFPS, MyGUI.GUICallPriority.top);
    }