static void Init() { // Get existing open window or if none, make a new one: GUITest window = (GUITest)EditorWindow.GetWindow(typeof(GUITest)); window.Show(); }
void Awake() { mainScipt = main.GetComponent<GUITest>(); mood = 0.0f; animed = false; prevDist = 1000; }
// Use this for initialization void Start() { enemyTags.Add ("Enemy1"); enemyTags.Add ("Enemy2"); enemyTags.Add ("Enemy3"); enemyTags.Add ("Enemy4"); mySpaw = FindObjectOfType<Spawn> (); board = FindObjectOfType<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); }
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); } } }
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); }