17 lines
336 B
C#
17 lines
336 B
C#
![]() |
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace HP.Generics
|
||
|
{
|
||
|
public class GoToMainMenu : MonoBehaviour
|
||
|
{
|
||
|
void Update()
|
||
|
{
|
||
|
if (Input.GetKeyDown(KeyCode.P))
|
||
|
GetComponent<HP.Generics.LoadAScene>().LoadASceneAsync("MainMenu");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|