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
a04db652
Commit
a04db652
authored
4 years ago
by
Danial KordModanlou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new saving data information
parent
7bacb786
master
Danielo
1 merge request
!1
Danielo
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2731 additions
and
11322 deletions
+2731
-11322
indexLayout.xml
.idea/.idea.car-sim-remaster/.idea/indexLayout.xml
+1
-0
workspace.xml
.idea/.idea.car-sim-remaster/.idea/workspace.xml
+237
-8803
Assembly-CSharp-Editor-firstpass.csproj
Assembly-CSharp-Editor-firstpass.csproj
+586
-599
Assembly-CSharp-Editor.csproj
Assembly-CSharp-Editor.csproj
+592
-605
Assembly-CSharp-firstpass.csproj
Assembly-CSharp-firstpass.csproj
+651
-658
Assembly-CSharp.csproj
Assembly-CSharp.csproj
+642
-649
DataSaver.cs
Assets/scripts/DataSaver.cs
+20
-7
ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+2
-1
No files found.
.idea/.idea.car-sim-remaster/.idea/indexLayout.xml
View file @
a04db652
...
...
@@ -19,6 +19,7 @@
<Path>
.vs
</Path>
<Path>
Library
</Path>
<Path>
Logs
</Path>
<Path>
Temp
</Path>
<Path>
obj
</Path>
</explicitExcludes>
</component>
...
...
This diff is collapsed.
Click to expand it.
.idea/.idea.car-sim-remaster/.idea/workspace.xml
View file @
a04db652
This diff is collapsed.
Click to expand it.
Assembly-CSharp-Editor-firstpass.csproj
View file @
a04db652
This diff is collapsed.
Click to expand it.
Assembly-CSharp-Editor.csproj
View file @
a04db652
This diff is collapsed.
Click to expand it.
Assembly-CSharp-firstpass.csproj
View file @
a04db652
This diff is collapsed.
Click to expand it.
Assembly-CSharp.csproj
View file @
a04db652
This diff is collapsed.
Click to expand it.
Assets/scripts/DataSaver.cs
View file @
a04db652
...
...
@@ -13,6 +13,11 @@ public class DataSaver : MonoBehaviour
[
SerializeField
]
public
Transform
pivot
;
//set this
public
static
Vector3
pivotPos
;
public
static
String
pivotName
=
"startPoint"
;
// Start is called before the first frame update
private
string
path
;
private
GameObject
[]
players
;
...
...
@@ -21,14 +26,15 @@ public class DataSaver : MonoBehaviour
private
menuSystem
menu
;
private
String
pName
;
private
String
curentName
;
// public static Action<String,Transform> OnCheckPoint;
private
bool
stable
=
false
;
// Use this for initialization
void
Start
()
{
//OnCheckPoint += setNewChanges;
pivotPos
=
pivot
.
transform
.
position
;
StartCoroutine
(
find
());
...
...
@@ -49,6 +55,12 @@ public class DataSaver : MonoBehaviour
}
public
void
setNewChanges
(
String
input
,
Transform
checkPoint
)
{
pivotPos
=
checkPoint
.
transform
.
position
;
}
void
Save
()
{
if
(
menu
.
activeSaving
==
0
)
...
...
@@ -77,12 +89,13 @@ public class DataSaver : MonoBehaviour
if
(
timePassed
>
0.1
)
{
string
[]
rowDataTemp
=
new
string
[
4
];
rowDataTemp
[
0
]
=
""
+
myPlayer
.
speed
;
rowDataTemp
[
1
]
=
""
+
(
myPlayer
.
transform
.
position
.
x
-
pivot
.
transform
.
position
.
x
);
rowDataTemp
[
2
]
=
""
+
(
myPlayer
.
transform
.
position
.
y
-
pivot
.
transform
.
position
.
y
);
rowDataTemp
[
3
]
=
""
+(
myPlayer
.
transform
.
position
.
z
-
pivot
.
transform
.
position
.
z
);
rowDataTemp
[
0
]
=
""
+
pivotName
;
rowDataTemp
[
1
]
=
""
+
myPlayer
.
speed
;
rowDataTemp
[
2
]
=
""
+
(
myPlayer
.
transform
.
position
.
x
-
pivotPos
.
x
);
rowDataTemp
[
3
]
=
""
+
(
myPlayer
.
transform
.
position
.
y
-
pivotPos
.
y
);
rowDataTemp
[
4
]
=
""
+(
myPlayer
.
transform
.
position
.
z
-
pivotPos
.
z
);
rowData
.
Add
(
rowDataTemp
);
string
newLine
=
string
.
Format
(
"{0},{1},{2},{3}
"
,
rowDataTemp
[
0
],
rowDataTemp
[
1
],
rowDataTemp
[
2
],
rowDataTemp
[
3
]);
string
newLine
=
string
.
Format
(
"{0},{1},{2},{3}
,{4}"
,
rowDataTemp
[
0
],
rowDataTemp
[
1
],
rowDataTemp
[
2
],
rowDataTemp
[
3
],
rowDataTemp
[
4
]);
timePassed
=
0
;
csv
.
AppendLine
(
newLine
);
}
...
...
This diff is collapsed.
Click to expand it.
ProjectSettings/ProjectSettings.asset
View file @
a04db652
...
...
@@ -594,7 +594,8 @@ PlayerSettings:
scriptingRuntimeVersion
:
1
gcIncremental
:
0
gcWBarrierValidation
:
0
apiCompatibilityLevelPerPlatform
:
{}
apiCompatibilityLevelPerPlatform
:
Standalone
:
3
m_RenderingPath
:
1
m_MobileRenderingPath
:
1
metroPackageName
:
Template_3D
...
...
This diff is collapsed.
Click to expand it.
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