Roman 655fe9cb55 任务:实装和完善部分音效,修复场景问题
1.修复了部分元素没有按键提示的问题
2.实装建议,给死亡的士兵加上调查事件
3.实装追逐战
4.更换修理电报机系统的美术素材
5.给修理电报机系统添加音效
6.稍微更改了打码教学的语言
7.修复老兵的脸和火焰穿模的问题
8.修复了第二关玩家背包图层穿模问题
9.为最后打码添加倒计时音效
10.更新需要打的句子为图片
11.增加打完划掉效果
12.增加实时翻译显示

(*:第二关的炮火已经越来越好了,但是目前只有炮火,晚上肯定也会开枪吧?希望增加一些随机快速闪烁的光源表示晚上的枪。

xx:人声问题请待定,加上音乐后好像又不是很违和了
(*:碉堡警告音效系统做完了,但是人声感觉上非常奇怪,建议修改
(*:敌人被石头吸引系统实装完成,但是很突兀,建议还是不要出现语言了

接下来的任务:
4.制作开始界面
5.制作Thanks 4 Play
7.实装死亡和自动重新开始
2021-09-14 20:30:57 +08:00

64 lines
1.9 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.InputSystem;
public class Chasing : Event
{
//控制追逐战触发的事件代码
// Start is called before the first frame update
private bool hasBeenCalled = false;
[Tooltip("拖入直升机灯光游戏物体")]
public GameObject helicopter;
[Tooltip("拖入追逐战BGM")]
public AudioClip clip;
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void OnTriggerEnter2D(Collider2D other)
{
if(other.tag == "Player" && !hasBeenCalled)
{
// Debug.Log("开始追逐战");
//标记自身已被唤醒过
hasBeenCalled = true;
//打开直升机灯光
helicopter.SetActive(true);
//关闭玩家操作地图(在对话结束后自动恢复)
FindObjectOfType<PlayerInput>().SwitchCurrentActionMap("NullMap");
//弹出对话【是直升机】
Flowchart.BroadcastFungusMessage("是直升机");
//更换BGM
FindObjectOfType<BGMPlayer>().ChangedTheBGM(clip);
}
}
public void OnDialogEnd()
{
//对话结束后调用:直升机灯光开始运动
// Debug.Log("直升机开始移动");
helicopter.GetComponent<Helicopter>().canGo = true;
//22秒后直升机差不多完全离开了弹出对话引导玩家在桌边修理电报机
Invoke("TalkAboutRepare",22f);
}
private void TalkAboutRepare()
{
//弹出对话
Flowchart.BroadcastFungusMessage("飞机走了");
//清除操作地图
FindObjectOfType<PlayerInput>().SwitchCurrentActionMap("NullMap");
//找到修理台,开启它的碰撞盒
FindObjectOfType<RepairBench>().GetComponent<BoxCollider2D>().enabled = true;
}
}