Newer
Older
HardPoint-Project-Abertay-University-Unity3D / Assets / Scripts / DeathScreen.cs
@Rackday Rackday on 18 Aug 384 bytes Project Added
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DeathScreen : MonoBehaviour
{
    [SerializeField]
    private SceneMan scene;
    [SerializeField]
    private int id;
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            scene.ChangeScene(id);
        }
    }
}