Ejemplo n.º 1
0
    static int SetUserName(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        string arg0 = LuaScriptMgr.GetLuaString(L, 1);

        LoginIDManager.SetUserName(arg0);
        return(0);
    }
Ejemplo n.º 2
0
    public void SetUserName(string userName)
    {
        _isInput = false;
        if (_ui != null)
        {
//            _ui.lblText.text = userName;
            SetAccountName(userName);
#if ANDROID_SDK || IOS_SDK
#else
            if (_ui.InputAccount != null)
            {
                _ui.InputAccount.value = userName;
            }
#endif
        }
        LoginIDManager.SetUserName(userName);
    }
Ejemplo n.º 3
0
    public void OnCancle(GameObject go)
    {
        _isInput = false;
        Debug.Log("1927 c# OnCancle is called");
#if ANDROID_SDK
        AndroidJavaClass  jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
        AndroidJavaObject jo = jc.GetStatic <AndroidJavaObject>("currentActivity");
        jo.Call("Logout");
        Debug.Log("1927 c# called Logout");
#endif

        _ui.ButtonSwitch.gameObject.SetActive(false);
        _ui.ButtonCancle.gameObject.SetActive(false);

        LoginIDManager.SetUserName("");
        LoginIDManager.SetAccount("");
//       _ui.lblText.text = "";
        SetAccountName("");
        MainPlayer.Instance.SDKLogin      = false;
        LoginNetwork.Instance.isVerifySDK = true;
        OnSwitch(go);
    }