fgm24/Assets/Scripts/ContinueToGameScene.cs

28 lines
513 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class ContinueToGameScene : MonoBehaviour
{
public GameObject anim;
// Start is called before the first frame update
void Start()
{
}
void Update()
{
if (Input.anyKey)
{
anim.SetActive(true);
Invoke("LoadGameScene", 1.5f);
}
}
void LoadGameScene()
{
SceneManager.LoadScene(2);
}
}