浏览代码

注释Debug,Unity下自动登录

蓝色星空 2 年之前
父节点
当前提交
e6bd782f49
共有 2 个文件被更改,包括 5 次插入11 次删除
  1. 1 1
      Assets/SDK/Common/Base/Log/DebugMy.cs
  2. 4 10
      Assets/Scripts/UI/LoginPanel.cs

+ 1 - 1
Assets/SDK/Common/Base/Log/DebugMy.cs

@@ -37,7 +37,7 @@ namespace SC.XR.Unity {
                 }
             } else {
                 if(Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.WindowsEditor) {
-                    Debug.Log(Tag + "[" + o.GetType().ToString() + "]: " + msg);
+                    //Debug.Log(Tag + "[" + o.GetType().ToString() + "]: " + msg);
                 } else {
                     Console.WriteLine(Tag + "[" + o.GetType().ToString() + "]: " + msg);
                 }

+ 4 - 10
Assets/Scripts/UI/LoginPanel.cs

@@ -249,18 +249,12 @@ public class LoginPanel : BaseUI
     /// </summary>
     private void OnClickLogin()
     {
-        //m_AccountStr = "88888888@qq.com";
-        m_PasswordStr = "123456Aa";
-
-        //m_AccountStr = "6555474@qq.com";
-        m_AccountStr = "666666@qq.com";
-        //m_PasswordStr = "123456Aa";
 
-        //m_AccountStr = "Luofp@sina.com";
-        //m_PasswordStr = "123456Aa";
+#if UNITY_EDITOR
+        m_AccountStr = "Blue@163.com";
+        m_PasswordStr = "123456Aa";
+#endif
 
-        //m_AccountStr = "daiguangjun@ghz-tech.com";
-        //m_PasswordStr = "123456Aa";
         if (string.IsNullOrWhiteSpace(m_AccountStr))
         {
             //m_AccountError.gameObject.SetActive(true);