void OnGUI() { if (Time.time % 2 < 1) { success = callBack.getResult(); } // For Setting Up ResponseBox. GUI.TextArea(new Rect(10, 5, 1300, 175), success); //========================================================================= if (GUI.Button(new Rect(50, 200, 200, 30), "GoalAchieved")) { abTestService = sp.BuildABTestService(); // Initializing ABTestService. abTestService.GoalAchieved(cons.testName, cons.variantName, callBack); } //========================================================================= if (GUI.Button(new Rect(260, 200, 200, 30), "Execute")) { abTestService = sp.BuildABTestService(); // Initializing ABTestService. abTestService.Execute(cons.testName, callBack); } //========================================================================= if (GUI.Button(new Rect(470, 200, 200, 30), "ExecuteDataDriven")) { abTestService = sp.BuildABTestService(); // Initializing ABTestService. abTestService.ExecuteDataDriven(cons.testName, callBack); } //========================================================================= if (GUI.Button(new Rect(680, 200, 200, 30), "IsActive")) { abTestService = sp.BuildABTestService(); // Initializing ABTestService. abTestService.IsActive(cons.testName, callBack); } //========================================================================= if (GUI.Button(new Rect(890, 200, 200, 30), "GetVariantData")) { abTestService = sp.BuildABTestService(); // Initializing ABTestService. abTestService.GetVariantData(cons.testName, cons.variantName, callBack); } }