Browse Source

修改UI,动画适配音频

ZXP 2 years ago
parent
commit
e0b1d725fc

+ 16 - 0
Assets/AnimatorControl.cs

@@ -9,8 +9,11 @@ public class AnimatorControl : MonoBehaviour
     public bool modelActive;
     [Header("ÊÇ·ñ²¥·Å¶¯»­")]
     public bool animatonPlay;
+
+    private AudioSource audioSource;
     void Start()
     {
+        audioSource = GetComponent<AudioSource>();
         animator.gameObject.SetActive(modelActive);
         animator.SetBool("S1", false);
         animator.SetBool("S2", false);
@@ -24,6 +27,19 @@ public class AnimatorControl : MonoBehaviour
         {
             animator.SetBool("Hold", true);
         }
+        StartCoroutine(Hold());
+    }
+    private IEnumerator Hold()
+    {
+        yield return new WaitForSeconds(1);
+        while (audioSource.isPlaying)
+        {
+            yield return null;
+        }
+        animator.SetBool("S1", false);
+        animator.SetBool("S2", false);
+        animator.SetBool("S3", false);
+        animator.SetBool("Hold", true);
 
     }
 }

+ 12 - 12
Assets/Prefabs/Answer.prefab

@@ -58,7 +58,7 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_Material: {fileID: 0}
-  m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
+  m_Color: {r: 1, g: 1, b: 1, a: 1}
   m_RaycastTarget: 1
   m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
   m_Maskable: 1
@@ -115,7 +115,7 @@ RectTransform:
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 0, y: 0}
   m_AnchoredPosition: {x: 0, y: 0}
-  m_SizeDelta: {x: 2000, y: 100}
+  m_SizeDelta: {x: 400, y: 100}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &9166703818729814927
 MonoBehaviour:
@@ -164,7 +164,7 @@ MonoBehaviour:
   onValueChanged:
     m_PersistentCalls:
       m_Calls: []
-  m_IsOn: 0
+  m_IsOn: 1
 --- !u!1 &9166703818764288710
 GameObject:
   m_ObjectHideFlags: 0
@@ -200,8 +200,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 1}
   m_AnchorMax: {x: 0, y: 1}
-  m_AnchoredPosition: {x: 50, y: -50}
-  m_SizeDelta: {x: 100, y: 100}
+  m_AnchoredPosition: {x: 49.2, y: -50.5}
+  m_SizeDelta: {x: 91.4893, y: 91.4893}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &9166703818764288705
 CanvasRenderer:
@@ -231,8 +231,8 @@ MonoBehaviour:
   m_OnCullStateChanged:
     m_PersistentCalls:
       m_Calls: []
-  m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
-  m_Type: 1
+  m_Sprite: {fileID: 21300000, guid: 097ca8678af1c3a438348c7954ac7345, type: 3}
+  m_Type: 0
   m_PreserveAspect: 0
   m_FillCenter: 1
   m_FillMethod: 4
@@ -273,10 +273,10 @@ RectTransform:
   m_Father: {fileID: 9166703818764288711}
   m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
-  m_AnchorMin: {x: 0, y: 0}
-  m_AnchorMax: {x: 1, y: 1}
-  m_AnchoredPosition: {x: 0, y: 0}
-  m_SizeDelta: {x: 0, y: 0}
+  m_AnchorMin: {x: 0.5, y: 0.5}
+  m_AnchorMax: {x: 0.5, y: 0.5}
+  m_AnchoredPosition: {x: -0.000023842, y: 0}
+  m_SizeDelta: {x: 61.1397, y: 61.1397}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &9166703819072649078
 CanvasRenderer:
@@ -306,7 +306,7 @@ MonoBehaviour:
   m_OnCullStateChanged:
     m_PersistentCalls:
       m_Calls: []
-  m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0}
+  m_Sprite: {fileID: 21300000, guid: 39da206b8fb3f574b9c02043ec9248c3, type: 3}
   m_Type: 0
   m_PreserveAspect: 0
   m_FillCenter: 1

+ 45 - 29
Assets/Prefabs/SelectPrefab.prefab

@@ -36,8 +36,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 1}
   m_AnchorMax: {x: 0, y: 1}
-  m_AnchoredPosition: {x: 2892.6416, y: -1723.5}
-  m_SizeDelta: {x: 734.59, y: 137.74}
+  m_AnchoredPosition: {x: 4023, y: -834}
+  m_SizeDelta: {x: 195.7, y: 442.3}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &5943149762659415357
 CanvasRenderer:
@@ -67,8 +67,8 @@ MonoBehaviour:
   m_OnCullStateChanged:
     m_PersistentCalls:
       m_Calls: []
-  m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
-  m_Type: 1
+  m_Sprite: {fileID: 21300000, guid: 14bcdc33a68836c4783f043ffbcfe60e, type: 3}
+  m_Type: 0
   m_PreserveAspect: 0
   m_FillCenter: 1
   m_FillMethod: 4
@@ -155,8 +155,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0.5, y: 0.5}
   m_AnchorMax: {x: 0.5, y: 0.5}
-  m_AnchoredPosition: {x: 0, y: 0.000015259}
-  m_SizeDelta: {x: 3812.5, y: 1355}
+  m_AnchoredPosition: {x: -109.2, y: -27.9}
+  m_SizeDelta: {x: 3585.2, y: 770.5}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &5943149762888284047
 CanvasRenderer:
@@ -179,7 +179,7 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_Material: {fileID: 0}
-  m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
+  m_Color: {r: 1, g: 1, b: 1, a: 1}
   m_RaycastTarget: 1
   m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
   m_Maskable: 1
@@ -188,10 +188,10 @@ MonoBehaviour:
       m_Calls: []
   m_FontData:
     m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
-    m_FontSize: 100
+    m_FontSize: 80
     m_FontStyle: 0
     m_BestFit: 0
-    m_MinSize: 1
+    m_MinSize: 0
     m_MaxSize: 300
     m_Alignment: 0
     m_AlignByGeometry: 0
@@ -199,7 +199,7 @@ MonoBehaviour:
     m_HorizontalOverflow: 0
     m_VerticalOverflow: 0
     m_LineSpacing: 1
-  m_Text: 
+  m_Text: "\u5185\u5BB9"
 --- !u!1 &5943149763234368312
 GameObject:
   m_ObjectHideFlags: 0
@@ -214,6 +214,7 @@ GameObject:
   - component: {fileID: 5943149763234368292}
   - component: {fileID: 8300432721581713372}
   - component: {fileID: 8147137081518750991}
+  - component: {fileID: 5163390058871755279}
   m_Layer: 5
   m_Name: SelectPrefab
   m_TagString: Untagged
@@ -272,7 +273,7 @@ MonoBehaviour:
   m_OnCullStateChanged:
     m_PersistentCalls:
       m_Calls: []
-  m_Sprite: {fileID: 0}
+  m_Sprite: {fileID: 21300000, guid: 33957b2f4b650424c8e0bd73aee2a712, type: 3}
   m_Type: 0
   m_PreserveAspect: 0
   m_FillCenter: 1
@@ -414,6 +415,21 @@ AudioSource:
     m_PreInfinity: 2
     m_PostInfinity: 2
     m_RotationOrder: 4
+--- !u!114 &5163390058871755279
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 5943149763234368312}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 8ef82772a5fc34b479a3729082749f9a, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  animator: {fileID: 0}
+  modelActive: 1
+  animatonPlay: 1
 --- !u!1 &5943149763324754592
 GameObject:
   m_ObjectHideFlags: 0
@@ -448,8 +464,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 1, y: 1}
-  m_AnchoredPosition: {x: 0, y: 0}
-  m_SizeDelta: {x: 0, y: 0}
+  m_AnchoredPosition: {x: 0.000045776367, y: 0}
+  m_SizeDelta: {x: -49.6917, y: 0}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &5943149763324754607
 CanvasRenderer:
@@ -472,7 +488,7 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_Material: {fileID: 0}
-  m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
+  m_Color: {r: 1, g: 1, b: 1, a: 1}
   m_RaycastTarget: 1
   m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
   m_Maskable: 1
@@ -481,18 +497,18 @@ MonoBehaviour:
       m_Calls: []
   m_FontData:
     m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
-    m_FontSize: 57
+    m_FontSize: 130
     m_FontStyle: 0
     m_BestFit: 0
     m_MinSize: 10
-    m_MaxSize: 83
+    m_MaxSize: 190
     m_Alignment: 4
     m_AlignByGeometry: 0
     m_RichText: 1
     m_HorizontalOverflow: 0
     m_VerticalOverflow: 0
     m_LineSpacing: 1
-  m_Text: "\u786E\u8BA4"
+  m_Text: "\u786E\n\u8BA4"
 --- !u!1 &5943149763677828827
 GameObject:
   m_ObjectHideFlags: 0
@@ -527,8 +543,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0.5, y: 1}
   m_AnchorMax: {x: 0.5, y: 1}
-  m_AnchoredPosition: {x: 0, y: -105.99994}
-  m_SizeDelta: {x: 5642.5, y: 212}
+  m_AnchoredPosition: {x: 0, y: -78}
+  m_SizeDelta: {x: 3001.9, y: 155.9}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &5943149763677828806
 CanvasRenderer:
@@ -551,7 +567,7 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_Material: {fileID: 0}
-  m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
+  m_Color: {r: 1, g: 1, b: 1, a: 1}
   m_RaycastTarget: 1
   m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
   m_Maskable: 1
@@ -560,7 +576,7 @@ MonoBehaviour:
       m_Calls: []
   m_FontData:
     m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
-    m_FontSize: 150
+    m_FontSize: 120
     m_FontStyle: 0
     m_BestFit: 0
     m_MinSize: 1
@@ -571,7 +587,7 @@ MonoBehaviour:
     m_HorizontalOverflow: 0
     m_VerticalOverflow: 0
     m_LineSpacing: 1
-  m_Text: 
+  m_Text: "\u6807\u9898"
 --- !u!1 &5943149763872498537
 GameObject:
   m_ObjectHideFlags: 0
@@ -607,8 +623,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0.5, y: 0.5}
   m_AnchorMax: {x: 0.5, y: 0.5}
-  m_AnchoredPosition: {x: 0, y: -413.5}
-  m_SizeDelta: {x: 5000, y: 827}
+  m_AnchoredPosition: {x: -2405, y: -0.012573}
+  m_SizeDelta: {x: 566, y: 1138.7}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &5943149763872498516
 CanvasRenderer:
@@ -631,14 +647,14 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_Material: {fileID: 0}
-  m_Color: {r: 0.8820755, g: 1, b: 0.9092453, a: 1}
+  m_Color: {r: 1, g: 1, b: 1, a: 1}
   m_RaycastTarget: 1
   m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
   m_Maskable: 1
   m_OnCullStateChanged:
     m_PersistentCalls:
       m_Calls: []
-  m_Sprite: {fileID: 0}
+  m_Sprite: {fileID: 21300000, guid: 6cb2cf9b1132ec241b49219ff53a8c7f, type: 3}
   m_Type: 0
   m_PreserveAspect: 0
   m_FillCenter: 1
@@ -661,9 +677,9 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_Padding:
-    m_Left: 50
-    m_Right: 50
-    m_Top: 50
+    m_Left: 0
+    m_Right: 0
+    m_Top: 300
     m_Bottom: 50
   m_ChildAlignment: 1
   m_Spacing: 0

+ 4 - 1
Assets/Prefabs/Text.prefab

@@ -60,7 +60,7 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_Material: {fileID: 0}
-  m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
+  m_Color: {r: 1, g: 1, b: 1, a: 1}
   m_RaycastTarget: 1
   m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
   m_Maskable: 1
@@ -189,3 +189,6 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: 8ef82772a5fc34b479a3729082749f9a, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
+  animator: {fileID: 0}
+  modelActive: 0
+  animatonPlay: 0

+ 19 - 80
Assets/Scenes/Main.unity

@@ -476,11 +476,6 @@ RectTransform:
   m_CorrespondingSourceObject: {fileID: 7348448353842151869, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
   m_PrefabInstance: {fileID: 123971684}
   m_PrefabAsset: {fileID: 0}
---- !u!1 &123971686 stripped
-GameObject:
-  m_CorrespondingSourceObject: {fileID: 7348448353842151870, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
-  m_PrefabInstance: {fileID: 123971684}
-  m_PrefabAsset: {fileID: 0}
 --- !u!1 &131150251
 GameObject:
   m_ObjectHideFlags: 0
@@ -700,11 +695,6 @@ RectTransform:
   m_CorrespondingSourceObject: {fileID: 7348448353842151869, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
   m_PrefabInstance: {fileID: 137638770}
   m_PrefabAsset: {fileID: 0}
---- !u!1 &137638772 stripped
-GameObject:
-  m_CorrespondingSourceObject: {fileID: 7348448353842151870, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
-  m_PrefabInstance: {fileID: 137638770}
-  m_PrefabAsset: {fileID: 0}
 --- !u!1001 &245421240
 PrefabInstance:
   m_ObjectHideFlags: 0
@@ -833,11 +823,6 @@ Transform:
   m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 90d36c4ae6865bf4b80b74e1cffc4f46, type: 3}
   m_PrefabInstance: {fileID: 261181832}
   m_PrefabAsset: {fileID: 0}
---- !u!1 &291073623 stripped
-GameObject:
-  m_CorrespondingSourceObject: {fileID: 7348448353842151870, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
-  m_PrefabInstance: {fileID: 2089831210}
-  m_PrefabAsset: {fileID: 0}
 --- !u!1001 &313954018
 PrefabInstance:
   m_ObjectHideFlags: 0
@@ -2288,8 +2273,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0.5, y: 0.5}
   m_AnchorMax: {x: 0.5, y: 0.5}
-  m_AnchoredPosition: {x: 0.0918, y: 2.5056}
-  m_SizeDelta: {x: 5785.283, y: 1930.7095}
+  m_AnchoredPosition: {x: 0.2702, y: 2.3843}
+  m_SizeDelta: {x: 4236.877, y: 1138.6675}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!4 &1431741987 stripped
 Transform:
@@ -2849,16 +2834,6 @@ RectTransform:
   m_CorrespondingSourceObject: {fileID: 7348448353842151869, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
   m_PrefabInstance: {fileID: 1584461914}
   m_PrefabAsset: {fileID: 0}
---- !u!1 &1584461916 stripped
-GameObject:
-  m_CorrespondingSourceObject: {fileID: 7348448353842151870, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
-  m_PrefabInstance: {fileID: 1584461914}
-  m_PrefabAsset: {fileID: 0}
---- !u!1 &1621290746 stripped
-GameObject:
-  m_CorrespondingSourceObject: {fileID: 7348448353842151870, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
-  m_PrefabInstance: {fileID: 809952758}
-  m_PrefabAsset: {fileID: 0}
 --- !u!1 &1663679540
 GameObject:
   m_ObjectHideFlags: 0
@@ -2942,7 +2917,7 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_Material: {fileID: 0}
-  m_Color: {r: 1, g: 1, b: 1, a: 1}
+  m_Color: {r: 0, g: 0, b: 0, a: 1}
   m_RaycastTarget: 1
   m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
   m_Maskable: 1
@@ -3163,11 +3138,6 @@ RectTransform:
   m_CorrespondingSourceObject: {fileID: 7348448353842151869, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
   m_PrefabInstance: {fileID: 1732453782}
   m_PrefabAsset: {fileID: 0}
---- !u!1 &1732453784 stripped
-GameObject:
-  m_CorrespondingSourceObject: {fileID: 7348448353842151870, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
-  m_PrefabInstance: {fileID: 1732453782}
-  m_PrefabAsset: {fileID: 0}
 --- !u!1 &1796131482
 GameObject:
   m_ObjectHideFlags: 0
@@ -3352,13 +3322,6 @@ MonoBehaviour:
   es: {fileID: 1495600499}
   playListObjects:
   - {fileID: 2121466627}
-  - {fileID: 1495600499}
-  - {fileID: 1621290746}
-  - {fileID: 291073623}
-  - {fileID: 1732453784}
-  - {fileID: 137638772}
-  - {fileID: 1584461916}
-  - {fileID: 123971686}
   - {fileID: 5943149763110390199}
 --- !u!1 &1870327474
 GameObject:
@@ -3833,6 +3796,10 @@ PrefabInstance:
       propertyPath: animatonPlay
       value: 1
       objectReference: {fileID: 0}
+    - target: {fileID: 7348448353842151868, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
+      propertyPath: m_Enabled
+      value: 1
+      objectReference: {fileID: 0}
     - target: {fileID: 7348448353842151869, guid: 2ecdf7b89b60a414eb458a91b9dafed7, type: 3}
       propertyPath: m_Pivot.x
       value: 0.5
@@ -4001,46 +3968,18 @@ PrefabInstance:
   m_Modification:
     m_TransformParent: {fileID: 1870327475}
     m_Modifications:
-    - target: {fileID: 5943149763234368292, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
-      propertyPath: topicName
-      value: "\u9AD8\u7EA7\u8BA4\u77E5\u63D0\u95EE"
-      objectReference: {fileID: 0}
-    - target: {fileID: 5943149763234368292, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
-      propertyPath: topicText
+    - target: {fileID: 5163390058871755279, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
+      propertyPath: animator
+      value: 
+      objectReference: {fileID: 2048452213}
+    - target: {fileID: 5943149762888284046, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
+      propertyPath: m_Text
       value: "\u9488\u5BF9\u6211\u4EEC\u521A\u521A\u5B66\u4E60\u7684\u300A\u5356\u706B\u67F4\u7684\u5C0F\u5973\u5B69\u300B\uFF0C\u540C\u5B66\u4EEC\u53EF\u4EE5\u7528\u81EA\u5DF1\u7684\u8BDD\u8BB2\u4E00\u904D\u8FD9\u4E2A\u6545\u4E8B\u5417\uFF1F"
       objectReference: {fileID: 0}
-    - target: {fileID: 5943149763234368292, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
-      propertyPath: answers.Array.size
-      value: 2
-      objectReference: {fileID: 0}
-    - target: {fileID: 5943149763234368292, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
-      propertyPath: answers.Array.data[0]
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 5943149763234368292, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
-      propertyPath: answers.Array.data[1]
-      value: 1
-      objectReference: {fileID: 0}
-    - target: {fileID: 5943149763234368292, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
-      propertyPath: answerTexts.Array.size
-      value: 2
-      objectReference: {fileID: 0}
-    - target: {fileID: 5943149763234368292, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
-      propertyPath: answerTexts.Array.data[0]
-      value: "\u9AD8\u7EA7\u8BA4\u77E5\u63D0\u95EE"
-      objectReference: {fileID: 0}
-    - target: {fileID: 5943149763234368292, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
-      propertyPath: answerTexts.Array.data[1]
-      value: "\u4F4E\u7EA7\u8BA4\u77E5\u63D0\u95EE"
-      objectReference: {fileID: 0}
     - target: {fileID: 5943149763234368312, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
       propertyPath: m_Name
       value: SelectPrefab
       objectReference: {fileID: 0}
-    - target: {fileID: 5943149763234368312, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
-      propertyPath: m_IsActive
-      value: 0
-      objectReference: {fileID: 0}
     - target: {fileID: 5943149763234368313, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
       propertyPath: m_Pivot.x
       value: 0.5
@@ -4071,11 +4010,11 @@ PrefabInstance:
       objectReference: {fileID: 0}
     - target: {fileID: 5943149763234368313, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
       propertyPath: m_SizeDelta.x
-      value: 5785.283
+      value: 4236.9
       objectReference: {fileID: 0}
     - target: {fileID: 5943149763234368313, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
       propertyPath: m_SizeDelta.y
-      value: 1930.7095
+      value: 1138.7
       objectReference: {fileID: 0}
     - target: {fileID: 5943149763234368313, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
       propertyPath: m_LocalPosition.x
@@ -4125,10 +4064,10 @@ PrefabInstance:
       propertyPath: m_LocalEulerAnglesHint.z
       value: 0
       objectReference: {fileID: 0}
-    - target: {fileID: 8147137081518750991, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
-      propertyPath: m_audioClip
-      value: 
-      objectReference: {fileID: 8300000, guid: f624ac793e758474b8c0285146704333, type: 3}
+    - target: {fileID: 5943149763677828825, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
+      propertyPath: m_Text
+      value: "\u9AD8\u7EA7\u8BA4\u77E5\u63D0\u95EE"
+      objectReference: {fileID: 0}
     m_RemovedComponents: []
   m_SourcePrefab: {fileID: 100100000, guid: 403675a57c95abc4a8b2fbbf2e09f862, type: 3}
 --- !u!1 &5943149763110390199 stripped

+ 3 - 4
Assets/Scripts/SelectPrefab.cs

@@ -7,18 +7,17 @@ using System;
 
 public class SelectPrefab : MonoBehaviour
 {
+
     [Header("题目主题")]
-    public string topicName;
+    public Text nameText;
     [Header("题目文本")]
-    public string topicText;
+    public Text text;
     [Header("答案文本数组")]
     public string[] answerTexts;
     [Header("答案数组")]
     public bool[] answers;
 
     [Header(" ")]
-    public Text nameText;
-    public Text text;
     public Transform answerParent;
     public Toggle answerPrefab;
     public Button selectButton;

+ 1 - 1
Assets/教室/motion/教师.FBX.meta

@@ -224,7 +224,7 @@ ModelImporter:
       cycleOffset: 0
       loop: 0
       hasAdditiveReferencePose: 0
-      loopTime: 0
+      loopTime: 1
       loopBlend: 0
       loopBlendOrientation: 0
       loopBlendPositionY: 0

粤ICP备19079148号