Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Suck It
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GameDevWeek
W
Wintersemester 2018-2019
Unity
Suck It
Commits
92495ff4
Commit
92495ff4
authored
Mar 30, 2019
by
Isa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Credits Hauptmenü
parent
c7d071b3
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3227 additions
and
270 deletions
+3227
-270
Assets/_Game/Font/BradBunR SDF.asset
Assets/_Game/Font/BradBunR SDF.asset
+1
-1
Assets/_Game/Scenes/MainMenu.unity
Assets/_Game/Scenes/MainMenu.unity
+3224
-261
Assets/_Game/Scripts/UI/MainMenu.cs
Assets/_Game/Scripts/UI/MainMenu.cs
+2
-8
No files found.
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
Markdown
is supported
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