Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gstuitje
RingMaster
Commits
04811962
Commit
04811962
authored
Jan 29, 2019
by
Mitchie Maluschnig
Browse files
Created a main menu, player can cycle through: main menu --> Daytime -->pause -->main Menu
parent
47ef82cd
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
RingMaster/RingMaster/Assets/Scenes/Daytime.unity
View file @
04811962
...
...
@@ -2513,7 +2513,7 @@ GameObject:
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
m_IsActive
:
0
---
!u!114
&1586100786
MonoBehaviour
:
m_ObjectHideFlags
:
0
...
...
RingMaster/RingMaster/Assets/Scenes/MainMenu.unity
View file @
04811962
This diff is collapsed.
Click to expand it.
RingMaster/RingMaster/Assets/Scripts/MenuScripts/MainMenu.cs
0 → 100644
View file @
04811962
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.SceneManagement
;
public
class
MainMenu
:
MonoBehaviour
{
public
void
StartGame
()
{
SceneManager
.
LoadScene
(
"Daytime"
);
}
public
void
ExitGame
()
{
}
public
void
StartOver
()
{
//reset stuff
SceneManager
.
LoadScene
(
"Daytime"
);
}
}
RingMaster/RingMaster/Assets/Scripts/MenuScripts/MainMenu.cs.meta
0 → 100644
View file @
04811962
fileFormatVersion: 2
guid: ac0026dbe6533f94da97a88e9a209731
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
RingMaster/RingMaster/Assets/Scripts/MenuScripts/PauseMenu.cs
View file @
04811962
...
...
@@ -7,7 +7,7 @@ public class PauseMenu : MonoBehaviour {
private
DaytimeManager
dayManager
;
void
Start
()
{
void
Awake
()
{
dayManager
=
GameObject
.
FindWithTag
(
"Manager"
).
GetComponent
<
DaytimeManager
>();
}
...
...
@@ -18,6 +18,7 @@ public class PauseMenu : MonoBehaviour {
}
public
void
ExitToMainMenu
()
{
Time
.
timeScale
=
1
;
SceneManager
.
LoadScene
(
"MainMenu"
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment