Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
car-sim-remaster
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9631059
car-sim-remaster
Commits
5d6c968e
Commit
5d6c968e
authored
Jun 25, 2020
by
Danial KordModanlou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new ui
parent
bc8385f4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
406 additions
and
63 deletions
+406
-63
indexLayout.xml
.idea/.idea.car-sim-remaster/.idea/indexLayout.xml
+0
-1
workspace.xml
.idea/.idea.car-sim-remaster/.idea/workspace.xml
+58
-52
p1.csv
Assets/CSV/p1.csv
+92
-0
SampleScene.unity
Assets/Scenes/SampleScene.unity
+242
-9
menuSystem.cs
Assets/scripts/menuSystem.cs
+14
-1
No files found.
.idea/.idea.car-sim-remaster/.idea/indexLayout.xml
View file @
5d6c968e
...
...
@@ -19,7 +19,6 @@
<Path>
.vs
</Path>
<Path>
Library
</Path>
<Path>
Logs
</Path>
<Path>
Temp
</Path>
<Path>
obj
</Path>
</explicitExcludes>
</component>
...
...
.idea/.idea.car-sim-remaster/.idea/workspace.xml
View file @
5d6c968e
This diff is collapsed.
Click to expand it.
Assets/CSV/p1.csv
View file @
5d6c968e
This diff is collapsed.
Click to expand it.
Assets/Scenes/SampleScene.unity
View file @
5d6c968e
This diff is collapsed.
Click to expand it.
Assets/scripts/menuSystem.cs
View file @
5d6c968e
using
System.Collections
;
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.UI
;
...
...
@@ -17,6 +18,7 @@ public class menuSystem : MonoBehaviour
[
SerializeField
]
private
Sprite
saveNamePause
;
[
SerializeField
]
private
Sprite
saveNameCountinou
;
public
GameObject
backGround
;
// Start is called before the first frame update
void
Start
()
{
...
...
@@ -24,6 +26,15 @@ public class menuSystem : MonoBehaviour
}
private
void
Update
()
{
if
(
Input
.
GetKeyDown
(
KeyCode
.
Escape
))
{
saveName
();
}
}
public
void
saveName
()
{
...
...
@@ -37,6 +48,7 @@ public class menuSystem : MonoBehaviour
}
else
{
nameField
.
text
=
PlayerName
;
Time
.
timeScale
=
0.01f
;
menu
.
SetActive
(
true
);
...
...
@@ -53,6 +65,7 @@ public class menuSystem : MonoBehaviour
public
void
saveOption
()
{
PlayerName
=
nameField
.
text
;
Debug
.
Log
(
"ff"
);
if
(
activeSaving
==
1
)
{
...
...
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