CangJie/Assets/Scripts//演出/HuangdiConfused.cs

22 lines
634 B
C#
Raw Normal View History

2022-03-20 23:28:11 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HuangdiConfused : Stage
{
protected override IEnumerator Main()
{
Debug.Log("黄帝疑惑");
//触发对话:黄帝疑惑
ConversationController.Instance.OnCall("黄帝疑惑");
2022-04-01 23:35:01 +08:00
//触发黄帝点头的动画
FindObjectOfType<HuangDi>().Behavior("Node");
2022-03-20 23:28:11 +08:00
//等待对话结束
yield return new WaitForSeconds(9f);
//标记黄帝状态为End
FindObjectOfType<HuangDi>().state = HuangDi.HuangDiState.End;
//结束
yield return base.Main();
}
}