Esempio n. 1
0
    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);
    }
Esempio n. 2
0
        void Done(bool isSetUp)
        {
            DialogInstance.DoneOk();

            NetworkPlayManager.Instance.OnClientConnect     -= StartHostedGame;
            NetworkPlayManager.Instance.OnServerConnect     -= StartHostedGame;
            NetworkPlayManager.Instance.OnServerListChanged -= UpdateServerList;

            if (_doneCallback != null)
            {
                _doneCallback(isSetUp);
            }
        }