init
This commit is contained in:
commit
001bb14f16
951 changed files with 270074 additions and 0 deletions
26
Assets/Scripts/Menu/Creditos.cs
Normal file
26
Assets/Scripts/Menu/Creditos.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue