void OnGUI() { GUILayout.BeginHorizontal(); GUILayout.Label("NOCTURNAL DEMO"); GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); GUILayout.Space(15); if (GUILayout.Button("Connect1")) { controller.ConnectNoRaw1(); } GUILayout.Space(15); if (GUILayout.Button("DisConnect1")) { controller.Disconnect1(); indexSignalIcons = 1; } if (GUILayout.Button("Menu")) { Application.LoadLevel("menu"); } GUILayout.Space(Screen.width - 350); GUILayout.Label(signalIcons[(int)indexSignalIcons]); GUILayout.EndHorizontal(); GUILayout.Space(40); GUILayout.Label("PoorSignal1:" + poorSignal1); GUILayout.Label("Attention1:" + attention1); GUILayout.Label("Meditation1:" + meditation1); GUILayout.Label("Delta:" + delta); }
void DoMyWindow(int windowID) { if (GUILayout.Button("Play")) { Application.LoadLevel("level_1"); } GUILayout.Space(20); GUILayout.BeginHorizontal(); if (GUILayout.Button("Connect1")) { controller.ConnectNoRaw1(); } if (GUILayout.Button("DisConnect1")) { controller.Disconnect1(); indexSignalIcons = 1; } GUILayout.EndHorizontal(); GUILayout.Space(15); GUILayout.Label("Developed & Designed by Keiran Lovett"); }