Warcorrespondents/Assets/Scripts/事件/AfterRecollection.cs
Roman bfe6054646 任务:推进游戏的流程化
*:修复若干Bug

场景:【序章-家中】
1.让CG拥有结束事件
2.编写暂用CG的结束事件,即重新载入场景【序章-家中】并让其呈现开门演出的多态。
3.创建多态【开门演出】。
4.完成多态【开门演出】。
5.创建并填充对话【谈论父亲离开后的水缸】

下班。明天做开门进CG,然后就是第一关了。🙏加油吧。
2021-08-14 01:43:04 +08:00

20 lines
704 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Fungus;
public class AfterRecollection : Event
{
//多态之一,序章-家中-已打码 需要的初始化代码
public override void OnCall()
{
Debug.Log("进行多态初始化,此多态演出为“序章-家中-已打码”");
//Vector3(18.8199997,0.0599999987,0)
//Vector3(19.2399998,0.0599999987,0)
//1.改变玩家的位置到父亲身边
FindObjectOfType<M_Player>().transform.position = new Vector3(9.30000019f,0.936617672f,0);
//2.触发对话【回忆之后的对话】
Flowchart.BroadcastFungusMessage("回忆之后的对话");
}
}