PracProg/Assets/Scripts/MenuScene/MenuManager.cs

23 lines
508 B
C#
Raw Normal View History

2021-02-04 19:49:39 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class MenuManager : MonoBehaviour
{
public Animator blackFadeAnim;
// Start is called before the first frame update
void Start()
{
GameManager.gameOver = false;
}
public void OnPlayBtnPressed()
{
AudioManager.audiomanager.Play("transition");
//SceneManager.LoadScene("Game");
blackFadeAnim.SetTrigger("fadeIn");
}
}