23 lines
508 B
C#
23 lines
508 B
C#
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");
|
|
}
|
|
}
|