SAIPO 153454f312 修改建议
1.在第一次与父亲对话时加入了对电报机操作的语言
2.在序章中的背景加入视差
3.加入了一个Shake脚本,以提供物体震动(实装到了石堆上面 效果还可以)

4.对检查死亡的机枪手的对话(我不会用fungus哼哼啊啊啊啊)
 1)(已经是一具没有气息的尸体了)
 2)父亲被你们所害,这是你们罪有应得。
2021-09-14 03:08:27 +08:00

49 lines
1.6 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
{
//可交互对象:门的控制类
[Tooltip("拖入黑幕")]
public GameObject blackUI;
[Tooltip("拖入第一关的BGM")]
public AudioClip clip;
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("第一关");
blackUI.SetActive(true);
FindObjectOfType<BGMPlayer>().ChangedTheBGM(clip);
Invoke("LoadScenen",FindObjectOfType<IndexRecoder>().blackUITime);
}
else
{
//弹出对话,要先拿包
Flowchart.BroadcastFungusMessage("先拿包吧");
FindObjectOfType<M_Player>().GetComponent<PlayerInput>().SwitchCurrentActionMap("NullMap");
}
}
}
private void LoadScenen()
{
SceneManager.LoadScene("第一关");
}
}