Explorar el Código

Merge branch 'main' of http://139.155.244.27:822/LSR/gouhuo

DESKTOP-5BUCSUT\LSR hace 1 año
padre
commit
469a800ac8
Se han modificado 2 ficheros con 6 adiciones y 1 borrados
  1. 1 0
      .gitignore
  2. 5 1
      SFGgouhuo/Assets/Scripts/UI/Loading/ESLanguage.cs

+ 1 - 0
.gitignore

@@ -23,3 +23,4 @@ SFGgouhuo/Assembly-CSharp-Editor-firstpass.csproj
 SFGgouhuo/Assembly-CSharp-firstpass.csproj
 SFGgouhuo/BakeryEditorAssembly.csproj
 SFGgouhuo/BakeryRuntimeAssembly.csproj
+SFGgouhuo/Project/

+ 5 - 1
SFGgouhuo/Assets/Scripts/UI/Loading/ESLanguage.cs

@@ -10,7 +10,12 @@ public class ESLanguage : MonoBehaviour
     {
         LanguageSwtich();
     }
+    void Update()
+    {
+        var toggles = transform.GetComponentsInChildren<Toggle>();
+        toggles[(int)LanguageMatchManager.Instance.GetCurLanType()].isOn = true;
 
+    }
     void LanguageSwtich()
     {
         var toggles = transform.GetComponentsInChildren<Toggle>();
@@ -35,6 +40,5 @@ public class ESLanguage : MonoBehaviour
     void OnLanguageChanged(Toggle toggle)
     {
 
-        Debug.Log(toggle.name);
     }
 }