lvjincheng 3 years ago
parent
commit
23cba9dfa7
2 changed files with 22 additions and 4 deletions
  1. 17 1
      Assets/BowArrow/Scenes/Entry.unity
  2. 5 3
      Assets/BowArrow/Scripts/Entry.cs

+ 17 - 1
Assets/BowArrow/Scenes/Entry.unity

@@ -358,6 +358,7 @@ GameObject:
   - component: {fileID: 730210589}
   - component: {fileID: 730210591}
   - component: {fileID: 730210590}
+  - component: {fileID: 730210592}
   m_Layer: 0
   m_Name: TipText
   m_TagString: Untagged
@@ -415,7 +416,7 @@ MonoBehaviour:
     m_AlignByGeometry: 0
     m_RichText: 1
     m_HorizontalOverflow: 1
-    m_VerticalOverflow: 0
+    m_VerticalOverflow: 1
     m_LineSpacing: 1
   m_Text: TipText
 --- !u!222 &730210591
@@ -426,6 +427,21 @@ CanvasRenderer:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 730210588}
   m_CullTransparentMesh: 1
+--- !u!114 &730210592
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 730210588}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  m_EffectColor: {r: 0.3339622, g: 0.5847058, b: 1, a: 0.5}
+  m_EffectDistance: {x: 1, y: -1}
+  m_UseGraphicAlpha: 1
 --- !u!1 &1422346461
 GameObject:
   m_ObjectHideFlags: 0

+ 5 - 3
Assets/BowArrow/Scripts/Entry.cs

@@ -20,7 +20,8 @@ public class Entry : MonoBehaviour
         // QualitySettings.vSyncCount = 0;
         // Application.targetFrameRate = 60;
         QualitySettings.vSyncCount = 1;
-        SetTip("正在检测对比软件版本", Color.white);
+        SetTip("Loading", Color.white, 56);
+        //SetTip("正在检测对比软件版本", Color.white);
         StartCoroutine(CheckAppVersion());
         StartCoroutine(AsyncLoadScene());
     }
@@ -60,7 +61,7 @@ public class Entry : MonoBehaviour
             if (async.progress >= 0.9f) {
                 if (appVersionCheckOK) {
                     async.allowSceneActivation = true;
-                    SetTip("软件版本校验成功", Color.green);
+                    //SetTip("软件版本校验成功", Color.green);
                     break;
                 }
             }
@@ -69,9 +70,10 @@ public class Entry : MonoBehaviour
     }
 
     [SerializeField] Text tipText;
-    void SetTip(string text, Color color) {
+    void SetTip(string text, Color color, int fontSize = 40) {
         tipText.text = text;
         tipText.color = color;
+        tipText.fontSize = fontSize;
     }
 
     void DelayQuit() {