public bool FacebookLoginHandler(BaseMessage message) { var facebookLoginMessage = message as FacebookLoginMessage; if (facebookLoginMessage.Result == FacebookLoginMessage.ResultType.OK) { DialogInstance dialog = gameObject.GetComponent <DialogInstance> (); dialog.DoneOk(); } return(true); }
void Done(bool isSetUp) { DialogInstance.DoneOk(); NetworkPlayManager.Instance.OnClientConnect -= StartHostedGame; NetworkPlayManager.Instance.OnServerConnect -= StartHostedGame; NetworkPlayManager.Instance.OnServerListChanged -= UpdateServerList; if (_doneCallback != null) { _doneCallback(isSetUp); } }