SAIPO 6bd74c6c0c 合并了分支
1.序章-家中
  1)加入了后处理volume对象,添加了Bloom,轻微暗角与重新映射动态范围
2.序章-战场
  1)加入了后处理volume对象,与一些色调色轮调整
  2)(建议这个场景也加入爆炸声和屏幕震动,因为背景也有炮弹,现在太平静了)
3.第一关
  1)加入了后处理volume对象,与一些色调色轮调整
  2)修复了枪光的bug
4.第二关
  1)加入了后处理volume对象,与一些色调色轮调整
  2)加入了背景的炮火效果
  3)加入了解决的两声枪响
5.在music effects文件夹里加入了不合适的音效的替代
2021-09-09 22:08:49 +08:00

31 lines
1.1 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.InputSystem;
public class MissionBook : Interactive
{
//任务书,继承可交互物体基类
[Tooltip("就是Canvas物体拖进来用来找到任务书的UI并控制它的开关")]
public RectTransform canvas;
private GameObject bookUI;//任务书游戏物体
void Start()
{
bookUI = canvas.Find("任务书").gameObject;//找到任务书UI因为其默认隐藏所以必须用这种方式找到
}
public override void OnCall()
{
bookUI.SetActive(true);//当被唤醒直接显示任务书的UI
//随后关闭玩家操控地图
FindObjectOfType<PlayerInput>().SwitchCurrentActionMap("PlayerInMissionBook");
//播放音效
GetComponent<AudioSource>().Play();
}
public override void Quit()
{
bookUI.SetActive(false);//当触发退出按钮直接关闭任务书UI
//同时打开玩家操控地图
FindObjectOfType<PlayerInput>().SwitchCurrentActionMap("PlayerNormal");
}
}