CangJie/Assets/Scripts//演出/HuangdiConfused.cs
Roman 4218cd5c99 任务:搭建场景3
1.制作场景1玩家交互绳结动画逻辑
(1.为玩家操控基类添加触发动作函数

2.制作场景1黄帝动画

3.引入了以前写的播片系统

好像不能摸鱼了,明天写播片,下班了喵😿
2022-04-01 23:05:52 +08:00

22 lines
634 B
C#

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