Roman cd9d2b2168 1.修复了序章-战场父亲会被导弹判定的问题
2.修复了第一关石头被炸开后闪退的问题
3.添加感谢游玩中背景的电码声
2021-09-15 13:08:47 +08:00

33 lines
729 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class EndMachine : Interactive
{
//控制游戏最后那个电报机的脚本
// Start is called before the first frame update
public AudioClip clip;
public GameObject blackUI;
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public override void OnCall()
{
blackUI.SetActive(true);
FindObjectOfType<BGMPlayer>().ChangedTheBGM(clip);
Invoke("ReStart",2f);
FindObjectOfType<IndexRecoder>().stageName = "";
}
private void ReStart(){SceneManager.LoadScene("开始游戏");}
}