
a.新建场景:“各种系统测试与陈列”,用来保存、测试和开发游戏的各种系统。 b.修改场景“序章-家中”,使其变为可以游玩的流程化状态 1.删除此场景不需要的游戏物体 2.调整相机的可移动范围 3.修改了“地面”的碰撞盒至合理 4.修改了“水缸”的碰撞盒至合理 5.修改了“电报机”的碰撞盒至合理 6.给“远处”添加了视差运动组件 c.添加对话“当完成父亲的电码后” d.完成对话“当完成父亲的电码后”后,载入战场场景
25 lines
509 B
C#
25 lines
509 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using Fungus;
|
|
public class WhenFinishFathersCode : Event
|
|
{
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public override void OnCall()
|
|
{
|
|
Flowchart.BroadcastFungusMessage("玩家打完了父亲教的电码");
|
|
//Debug.Log("打完了,执行下一步的代码请写这里");
|
|
}
|
|
}
|