|
@@ -16,7 +16,7 @@ public class ERNIEBotManager : MonoBehaviour
|
|
|
public GameObject ui;
|
|
|
|
|
|
public Transform Irobot;
|
|
|
- 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>();
|
|
|
+
|
|
|
|
|
|
}
|
|
|
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);
|
|
|
+
|
|
|
yield return new WaitForSeconds(times);
|
|
|
|
|
|
- animator.SetBool(Animator_Name, false);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
private IEnumerator AudioIconSetting(float times , bool state)
|