修改: 1.优化了一下背景枪火光,减小了虚的部分,目前用灯光来做只能做到这种效果,但是用贴图做会显得飘在上面一样。 2.更改了出字的音效,敲击键盘的声音 3.已经渲染好了新的第二段cg,加入了淡入淡出效果 4.修改了第一关的漂浮烟雾,使其...更加顺眼 5.更改了撕纸的音效 建议: 1.序章的多态似乎有些问题,过完序章战场后还是第一个状态的家里 2.被石头吸引的音效建议在语音之前加上一声 嗯? 可能会顺滑一些 3.在玩家还没修好电话线时与电报机交互,建议加入对话 “电报机没有反应,还有没有修好的地方吧。”
41 lines
912 B
C#
41 lines
912 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Experimental.Rendering.Universal;
|
|
using UnityEngine.UIElements;
|
|
|
|
public class BackBoom : MonoBehaviour
|
|
{
|
|
public Transform left;
|
|
|
|
public Transform right;
|
|
public Transform up;
|
|
|
|
public Transform down;
|
|
|
|
public GameObject boomLight;
|
|
|
|
public List<GameObject> BoomList;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
InvokeRepeating("AddLight",1f,0.2f);
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
void AddLight()
|
|
{
|
|
Vector2 pos = new Vector2(Random.Range(left.position.x,right.position.x),Random.Range(up.position.y,down.position.y));
|
|
var light2D = Instantiate(boomLight, pos, Quaternion.identity).GetComponent<Light2D>();
|
|
light2D.pointLightInnerRadius = Random.Range(3f, 5.79f);
|
|
}
|
|
|
|
}
|