Isoulated/Assets/Scripts/Menu/Creditos.cs
Gerard Gascón 001bb14f16 init
2025-04-24 17:19:36 +02:00

26 lines
522 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Video;
public class Creditos : MonoBehaviour{
public float time;
public LevelLoader levelLoader;
// Start is called before the first frame update
void Start(){
Invoke("Video", time);
AudioManager.instance.Stop("Menu");
}
void Update(){
if (Input.GetButtonDown("Cancel")){
Video();
}
}
void Video(){
levelLoader.LoadLevel(0);
}
}