FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnitySingleton/Samples~/Scripts/GameManager.cs at main · UnityCommunity/UnitySingleton · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
UnityCommunity
/
UnitySingleton
Public
Notifications
You must be signed in to change notification settings
Fork
71
Star
702
Code
Issues
1
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UnitySingleton
/
Samples~
/
Scripts
/
GameManager.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (18 loc) · 454 Bytes
Breadcrumbs
UnitySingleton
/
Samples~
/
Scripts
/
GameManager.cs
Copy path
File metadata and controls
21 lines (18 loc) · 454 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using
UnityEngine
;
using
UnityEngine
.
SceneManagement
;
namespace
UnityCommunity
.
UnitySingleton
.
Samples
{
public
class
GameManager
:
PersistentMonoSingleton
<
GameManager
>
{
[
SerializeField
]
protected
string
m_PlayerName
;
protected
virtual
void
Start
(
)
{
SceneManager
.
LoadScene
(
"Main Menu"
)
;
}
public
string
GetPlayerName
(
)
{
return
m_PlayerName
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL