Roman d0ee82773f 任务:替换现有美术素材和动画、完善游戏的流程化
场景:【序章-家中】
1.加入玩家长大后的骨骼,并在多态【准备出发】中部署好。
多态【准备出发】中:
1.替换玩家骨骼为长大后
2.删除电报机
3.添加对话,【准备出发】
4.使水缸在该多态下,按下交互后向右移开
5.创建游戏物体【假电报机】,移开水缸后可与其交互,交互后让玩家背上背包。
6.当玩家背上了背包,可以与门交互,交互后来到第一关。
7.当玩家没拿包就与门交互,弹出对话要求玩家拿包。

至此,序章的流程化、美术和动画资源的替换基本完成。
加油吧,加油了吗?
2021-08-28 00:49:37 +08:00

37 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Fungus;
using UnityEngine.SceneManagement;
using UnityEngine.InputSystem;
public class Door : Interactive
{
//可交互对象:门的控制类
public override void OnCall()
{
//在开门演出的多态当门被唤醒显示CG
if(FindObjectOfType<IndexRecoder>().stageName == "开门演出")
{
CGAdministrator administrator = FindObjectOfType<CGAdministrator>();
administrator.CallACG("暂用-战友");
}
//如果是在准备出发这一幕被唤醒,则检查是否捡起背包
if(FindObjectOfType<IndexRecoder>().stageName == "准备出发")
{
if(FindObjectOfType<M_Player>().transform.Find("包").gameObject.activeSelf)//如果已经捡起背包
{
//加载第一关场景
SceneManager.LoadScene("第一关");
}
else
{
//弹出对话,要先拿包
Flowchart.BroadcastFungusMessage("先拿包吧");
FindObjectOfType<M_Player>().GetComponent<PlayerInput>().SwitchCurrentActionMap("NullMap");
}
}
}
}