SAIPO ba072882fa 合并分支
修改:
1.优化了一下背景枪火光,减小了虚的部分,目前用灯光来做只能做到这种效果,但是用贴图做会显得飘在上面一样。
2.更改了出字的音效,敲击键盘的声音
3.已经渲染好了新的第二段cg,加入了淡入淡出效果
4.修改了第一关的漂浮烟雾,使其...更加顺眼
5.更改了撕纸的音效

建议:
1.序章的多态似乎有些问题,过完序章战场后还是第一个状态的家里
2.被石头吸引的音效建议在语音之前加上一声 嗯? 可能会顺滑一些
3.在玩家还没修好电话线时与电报机交互,建议加入对话 “电报机没有反应,还有没有修好的地方吧。”
2021-09-11 22:39:46 +08:00

52 lines
1.5 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 UnityEngine.SceneManagement;
public class AFakeMachine : Interactive
{
// Start is called before the first frame update
//一个假的电报机类,因为“序章-战场”中的电报机不需要实际打码功能,为了方便我这里单独写一些代码
//继承可交互物体基类
public AudioSource onAudio;
[Tooltip("拖入黑幕游戏物体")]
public GameObject blackUI;
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public override void OnCall()
{
//当这个假的电报机被唤醒
//1.检查总线
AllLinesInfo info = FindObjectOfType<AllLinesInfo>();
if(info.AreYouOK())
{
//若所有线路OK
//转到场景“序章-家中”,给记录员发信息,让“序章-家中”表现为正确状态
IndexRecoder indexRecoder = FindObjectOfType<IndexRecoder>();
indexRecoder.ChangeStageName("序章-家中-已打码");
onAudio.Play();
blackUI.SetActive(true);
Invoke("loadSceneHome",indexRecoder.blackUITime);
}
else
{
//若还没OK之后等策划编写新的内容
Debug.Log("还有线路没有联通");
}
}
void loadSceneHome()
{
SceneManager.LoadScene("序章-家中");
}
}