فهرست منبع

1.红外新手引导触发问题

slambb 2 سال پیش
والد
کامیت
baf240355e

+ 5 - 0
Assets/BowArrow/Modules/InfraredGuider/InfraredGuider.cs

@@ -39,7 +39,12 @@ public class InfraredGuider : MonoBehaviour
     }
 
     public void ExitGuider() {
+
+        //if (NewUserGuiderManager.ins)
+        //    NewUserGuiderManager.ins.OnEnd();
+
         GameMgr.bNavBack = false;
+
         Destroy(gameObject);
     }
 

+ 5 - 1
Assets/BowArrow/Modules/NewUserGuider/NewUserGuiderManager.cs

@@ -56,7 +56,11 @@ public class NewUserGuiderManager : MonoBehaviour
                     break;
 
                 case "开始-红外调整":
-                    onInitInfraredGuider();
+                    if (PlayerPrefs.GetInt("entry-guider-infrared-" + LoginMgr.myUserInfo.id, 0) == 1) {
+                        PlayerPrefs.SetInt("entry-guider-infrared-" + LoginMgr.myUserInfo.id, 2);
+                        onInitInfraredGuider();
+                    }
+                    
                 break;
             }
         }

+ 5 - 5
Assets/BowArrow/Scenes/Game.unity

@@ -6018,7 +6018,7 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 0, y: 0}
-  m_AnchoredPosition: {x: 0, y: 0}
+  m_AnchoredPosition: {x: 28.947369, y: 0}
   m_SizeDelta: {x: 0, y: 33}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &589339043
@@ -7492,7 +7492,7 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 0, y: 0}
-  m_AnchoredPosition: {x: 0, y: 0}
+  m_AnchoredPosition: {x: 28.947369, y: 0}
   m_SizeDelta: {x: 0, y: 33}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &694545845
@@ -12635,7 +12635,7 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 0, y: 0}
-  m_AnchoredPosition: {x: 0, y: 0}
+  m_AnchoredPosition: {x: 28.947369, y: 0}
   m_SizeDelta: {x: 0, y: 33}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &1218454288
@@ -14110,7 +14110,7 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 0, y: 0}
-  m_AnchoredPosition: {x: 0, y: 0}
+  m_AnchoredPosition: {x: 47.894737, y: 0}
   m_SizeDelta: {x: 0, y: 33}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &1338115114
@@ -20253,7 +20253,7 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 0, y: 0}
-  m_AnchoredPosition: {x: 0, y: 0}
+  m_AnchoredPosition: {x: 77.89474, y: 0}
   m_SizeDelta: {x: 0, y: 40}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &1845023679

+ 1 - 1
Assets/SmartBow/Scripts/Views/ConnectGuidanceView.cs

@@ -247,7 +247,7 @@ public class ConnectGuidanceView : MonoBehaviour
     //连接之后,跳转进入场景
     void onEnterInfrared() {
         //添加进入射箭场景 
-        if (PlayerPrefs.GetInt("entry-guider-infrared-" + LoginMgr.myUserInfo.id, 0) != 1)
+        if (PlayerPrefs.GetInt("entry-guider-infrared-" + LoginMgr.myUserInfo.id, 0) == 0)
         {
             Debug.Log("-----进入射箭场景!");
             NewUserGuiderManager newUserGuiderManager = FindObjectOfType<NewUserGuiderManager>();

+ 1 - 1
Assets/SmartBow/Scripts/Views/InfraredViewParts/InfraredGuidanceView.cs

@@ -12,7 +12,7 @@ public class InfraredGuidanceView  : JCUnityLib.ViewBase
     void Start()
     {
        
-        
+
     }
 
     public void OnClick_EnterLayout2() {