
1.推进流程化
(1.新增演出框架,具体结构如图
(2.使用时仅需要重写父类Stage的虚函数,请视情况决定是否用base
2.修改视差类,使其能够自动捕获主摄像机
3.编写开场的第一个演出
(1.命名为:HuangdiAsk
(2.触发对话:黄帝提需求
(3.留下空缺:黄帝手指左方(动画目前还没有)
4.编写玩家找到正确的绳结后的的演出
(1.命名为:HuangdiConfuse
(2.触发对话:黄帝疑惑
可以摸鱼吗😿
20 lines
542 B
C#
20 lines
542 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class HuangdiConfused : Stage
|
|
{
|
|
protected override IEnumerator Main()
|
|
{
|
|
Debug.Log("黄帝疑惑");
|
|
//触发对话:黄帝疑惑
|
|
ConversationController.Instance.OnCall("黄帝疑惑");
|
|
//等待对话结束
|
|
yield return new WaitForSeconds(9f);
|
|
//标记黄帝状态为End
|
|
FindObjectOfType<HuangDi>().state = HuangDi.HuangDiState.End;
|
|
//结束
|
|
yield return base.Main();
|
|
}
|
|
}
|