Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Wintersemester 2018-2019
Unity
Suck It
Commits
92495ff4
Commit
92495ff4
authored
Mar 30, 2019
by
Isa
Browse files
Credits Hauptmenü
parent
c7d071b3
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Assets/_Game/Font/BradBunR SDF.asset
View file @
92495ff4
...
...
@@ -2041,7 +2041,7 @@ Material:
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
- _GlowColor: {r: 0, g: 0.6698113, b: 0, a: 0.5}
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
- _OutlineColor: {r: 0.
3561321, g: 0.3561321, b: 0.5
, a: 1}
- _OutlineColor: {r: 0.
039215688, g: 0.015686275, b: 0.1882353
, a: 1}
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
...
...
Assets/_Game/Scenes/MainMenu.unity
View file @
92495ff4
This diff is collapsed.
Click to expand it.
Assets/_Game/Scripts/UI/MainMenu.cs
View file @
92495ff4
...
...
@@ -12,7 +12,6 @@ public class MainMenu : MonoBehaviour
public
StartPointObject
startPointObject
;
private
EventSystem
_myEventSystem
;
private
GameObject
_backScreen
,
_currentScreen
;
private
Button
_selectedBtn
;
private
GameObject
_old
,
_new
;
...
...
@@ -32,11 +31,10 @@ public class MainMenu : MonoBehaviour
{
_backScreen
.
SetActive
(
true
);
_currentScreen
.
SetActive
(
false
);
_selectedBtn
.
Select
();
_backScreen
=
null
;
}
if
(
Input
.
GetMouseButtonDown
(
0
)
&&
!
EventSystem
.
current
.
IsPointerOverGameObject
()
)
if
(
Input
.
GetMouseButtonDown
(
0
))
{
_myEventSystem
.
SetSelectedGameObject
(
_old
);
}
...
...
@@ -55,6 +53,7 @@ public class MainMenu : MonoBehaviour
public
void
SwitchToMouse
()
{
Debug
.
Log
(
"Deselect all"
);
_myEventSystem
.
GetComponent
<
UnityEngine
.
EventSystems
.
EventSystem
>().
SetSelectedGameObject
(
null
);
}
...
...
@@ -67,9 +66,4 @@ public class MainMenu : MonoBehaviour
{
_currentScreen
=
cScreen
;
}
public
void
SelectBtn
(
Button
btn
)
{
_selectedBtn
=
btn
;
}
}
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