Esempio n. 1
0
    public override void Connect(ConnectionParams parameters)
    {
        CurrentConnectionStatus = ConnectionStatus.Connecting;
#if !UNITY_EDITOR
#if UNITY_ANDROID
        new AndroidJavaClass(InfoContainer.Instance.unityBridgeClass).CallStatic("doMethodWithCallbackWithParameters", "Connect", Newtonsoft.Json.JsonConvert.SerializeObject(parameters), MonoJavaCallback.ActionToJavaObject(OnConnect));
#elif UNITY_IOS
        throw new NotImplementedException();
#else
        throw new NotImplementedException();
#endif
#else
        Debug.Log("Connect in editor");
#endif
        parameters.SaveParametersToPlayerPrefs();
    }