-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathgameSceneManager.cs
More file actions
48 lines (41 loc) · 1.08 KB
/
gameSceneManager.cs
File metadata and controls
48 lines (41 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class gameSceneManager : MonoBehaviour
{
//This was just used to load menu stuff properly and change scenes
public Canvas mainCanvas;
public Canvas helpCanvas;
public Canvas helpCanvas2;
// Start is called before the first frame update
public void loadMainMenu()
{
SceneManager.LoadScene(0);
}
public void loadLevelOne()
{
SceneManager.LoadScene(1);
}
public void loadHelpCanvas()
{
mainCanvas.enabled = false;
helpCanvas.enabled = true;
}
public void loadHelpCanvasBack()
{
helpCanvas2.enabled = false;
helpCanvas.enabled = true;
}
public void loadHelpCanvas2()
{
helpCanvas.enabled = false;
helpCanvas2.enabled = true;
}
public void loadMainCanvas()
{
mainCanvas.enabled = true;
helpCanvas.enabled = false;
helpCanvas2.enabled = false;
}
}