
1.实装死亡重开系统: *:增加被航弹炸死的死法 *:增加被地雷炸死的死法 *:增加了被碉堡打死的死法 *:增加被夜间碉堡扫死的死法 *:增加被夜间巡逻的人打死的死法 *:增加被直升机打死的死法 2.修改碉堡警告UI颜色 3.编写开始游戏界面 4.编写感谢游玩界面 5.修复老兵牺牲动画的Bug (*:第二关的炮火已经越来越好了,但是目前只有炮火,晚上肯定也会开枪吧?希望增加一些随机快速闪烁的光源表示晚上的枪。 xx:人声问题请待定,加上音乐后好像又不是很违和了 (*:碉堡警告音效系统做完了,但是人声感觉上非常奇怪,建议修改 (*:敌人被石头吸引系统实装完成,但是很突兀,建议还是不要出现语言了 接下来的任务: *:试图做得更好
63 lines
1.3 KiB
C#
63 lines
1.3 KiB
C#
using System.Collections;
|
||
using System.Collections.Generic;
|
||
using UnityEngine;
|
||
using UnityEngine.SceneManagement;
|
||
|
||
|
||
public class OP : MonoBehaviour
|
||
{
|
||
//控制开始页面的脚本
|
||
// Start is called before the first frame update
|
||
public SpriteRenderer start;
|
||
public SpriteRenderer quit;
|
||
public Sprite startC;
|
||
public Sprite startN;
|
||
public Sprite quitC;
|
||
public Sprite quitN;
|
||
private bool nowChoose = true;//true代表选开始,false代表选退出
|
||
public GameObject blackUI;
|
||
public AudioClip clip;
|
||
void Start()
|
||
{
|
||
|
||
}
|
||
|
||
// Update is called once per frame
|
||
void Update()
|
||
{
|
||
|
||
}
|
||
public void OnChooseUpOne()
|
||
{
|
||
start.sprite = startC;
|
||
quit.sprite = quitN;
|
||
nowChoose = true;
|
||
}
|
||
|
||
public void OnChooseDownOne()
|
||
{
|
||
start.sprite = startN;
|
||
quit.sprite = quitC;
|
||
nowChoose = false;
|
||
}
|
||
|
||
public void OnComfirm()
|
||
{
|
||
if (nowChoose)//如果按了开始游戏
|
||
{
|
||
blackUI.SetActive(true);
|
||
Invoke("InToTheGame",2f);
|
||
FindObjectOfType<BGMPlayer>().ChangedTheBGM(clip);
|
||
}
|
||
else//如果按了退出游戏
|
||
{
|
||
Application.Quit();
|
||
}
|
||
}
|
||
|
||
public void InToTheGame()
|
||
{
|
||
SceneManager.LoadScene("序章-家中");
|
||
}
|
||
}
|