upgraded the game
This commit is contained in:
@@ -6,6 +6,7 @@ using UnityEngine.SceneManagement;
|
||||
public class MenuPlay : MonoBehaviour
|
||||
{
|
||||
public LayerMask contactFilter;
|
||||
public AudioSource sfx;
|
||||
public MenuMouse mouse;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
@@ -18,6 +19,7 @@ public class MenuPlay : MonoBehaviour
|
||||
{
|
||||
if (Input.GetMouseButtonDown(0)){
|
||||
if(Physics2D.CircleCast(mouse.pos, 1f, Vector2.zero, 0f, contactFilter)){
|
||||
sfx.Play();
|
||||
SceneManager.LoadScene("Tutorial");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user