Beispiel #1
0
        public static void ShowLoginUIWithCallback(Action callback)
        {
            OKLog.Info("ShowLoginUI on OKLoginRequest called");
            GameObject     gameObject   = new GameObject("ShowOpenKitLoginUITempObject" + DateTime.Now.Ticks);
            OKLoginRequest loginRequest = gameObject.AddComponent <OKLoginRequest>();

            Action <bool, string> wrapperCallback = (success, stringRetVal) => {
                OKLog.Info("Wrapper callback called");
                callback();
            };

            loginRequest.callFunction(wrapperCallback);
        }
Beispiel #2
0
 public static void ShowLoginToOpenKitWithDismissCallback(Action callback)
 {
     OKLoginRequest.ShowLoginUIWithCallback(callback);
 }