using System.Collections; using System.Collections.Generic; using UnityEngine; using Fungus; /// /// 演出,神的对话 /// public class GodTalk : Stage { public GameObject lightRing; private bool conversationEnd = false; protected override IEnumerator Main(){ yield return new WaitForSeconds(1f); //触发对话 Flowchart.BroadcastFungusMessage("神之对话"); yield return new WaitUntil( () => { return conversationEnd; } ); lightRing.SetActive(true); yield return new WaitForSeconds(1f); StartCoroutine(base.Main()); } public void ConversationEnd(){conversationEnd = true;} }