It shows the messagebox in unity editor without a problem but it doesn't show anything in windows app. Here's the code:
public void continueAgents()
{
Application.OpenURL("Some link");
#if UNITY_EDITOR
EditorUtility.DisplayDialog("Wait!", "Please complete the survey first!", "Ok");
#endif
Drv.changeCondition();
coopAgentID = 5;
if (participantID[coopAgentID] == 'c')
coopAgent = 21;
else
coopAgent = 81;
cond = 2;
Obj = GameObject.Find("ScriptHolder");
SA = Obj.GetComponent<switchAnimation>();
if (agnt % 2 == 0)
SA.GotoAgentOne();
else
SA.GotoAgentTwo();
}