29 lines
728 B
C#
29 lines
728 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using Fungus;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 演出,神的对话
|
||
|
/// </summary>
|
||
|
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;}
|
||
|
}
|