Browse Source

Merge branch 'F/0529_GHzDemo' of ssh://gogs.ghz-tech.com:30979/GHzGlass/GHZMRNavigatorPro into F/0529_GHzDemo

蓝色星空 1 year ago
parent
commit
ec465e816c
1 changed files with 9 additions and 5 deletions
  1. 9 5
      Assets/Scripts/ERNIEBot/ERNIEBotManager.cs

+ 9 - 5
Assets/Scripts/ERNIEBot/ERNIEBotManager.cs

@@ -16,7 +16,7 @@ public class ERNIEBotManager : MonoBehaviour
     public GameObject ui;
 
     public Transform Irobot;
-    private Animator animator;
+ //   private Animator animator;
 
     public Transform player;
     private bool isCollect;
@@ -36,7 +36,7 @@ public class ERNIEBotManager : MonoBehaviour
     private Vector3 irobotPos;
     private void Awake()
     {
-        animator = Irobot.GetComponent<Animator>();
+       //animator = Irobot.GetComponent<Animator>();
      
     }
     private void OnEnable()
@@ -261,7 +261,11 @@ public class ERNIEBotManager : MonoBehaviour
                 StartCoroutine(AudioIconSetting(1f, false));
             }
            
-        }      
+        }
+        else
+        {
+            StartSpeek();
+        }
         backt.text = "";
     }
 
@@ -274,10 +278,10 @@ public class ERNIEBotManager : MonoBehaviour
     private IEnumerator PlayAnimator( string Animator_Name ,float times)
     {
 
-        animator.SetBool(Animator_Name, true);
+       // animator.SetBool(Animator_Name, true);
         yield return new WaitForSeconds(times);
 
-        animator.SetBool(Animator_Name, false);
+        //animator.SetBool(Animator_Name, false);
     }
 
     private IEnumerator AudioIconSetting(float times , bool state)