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

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

38 lines
880 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class WhenTheCodeAndConversationAreCompleted : Event
{
// Start is called before the first frame update
//事件,当在序章中完成教学并且完成和父亲的第二段对话后
[Tooltip("请拖入黑幕游戏物体")]
public GameObject blackUI;
private IndexRecoder indexRecoder;
void Start()
{
indexRecoder = FindObjectOfType<IndexRecoder>();
}
// Update is called once per frame
void Update()
{
}
public override void OnCall()
{
blackUI.SetActive(true);
Invoke("LoadScene",indexRecoder.blackUITime);
}
private void LoadScene()
{
indexRecoder.ChangeStageName("序章-战场");
SceneManager.LoadScene("序章-战场");
}
}