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
385f8dd0
Commit
385f8dd0
authored
Jun 24, 2020
by
Danial KordModanlou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data saver problem solved
parent
b2db4e15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
284 additions
and
339 deletions
+284
-339
workspace.xml
.idea/.idea.car-sim-remaster/.idea/workspace.xml
+251
-227
p1.csv
Assets/CSV/p1.csv
+13
-0
SampleScene.unity
Assets/Scenes/SampleScene.unity
+9
-108
IKD_DemoController.cs
...TheGameOn/IK Driver/Scripts/Utility/IKD_DemoController.cs
+1
-1
CarCustom.cs
Assets/scripts/CarCustom.cs
+3
-2
DataSaver.cs
Assets/scripts/DataSaver.cs
+7
-1
No files found.
.idea/.idea.car-sim-remaster/.idea/workspace.xml
View file @
385f8dd0
This diff is collapsed.
Click to expand it.
Assets/CSV/p1.csv
View file @
385f8dd0
...
...
@@ -37,3 +37,16 @@ distance x from first pivot,distance y from first pivot,distance z from first pi
-27.67458,-0.7343451,-10.50054,0.0001670254,startPoint,-27.67458,-0.7343451,-10.50054,16.6705,-70.32,0.4034879,13.95657
-27.67458,-0.7343452,-10.50054,0.0001682712,startPoint,-27.67458,-0.7343452,-10.50054,16.67049,-70.32,0.4034879,13.95657
-27.67458,-0.7343451,-10.50054,0.0001665158,startPoint,-27.67458,-0.7343451,-10.50054,16.67049,-70.32,0.4034879,13.95657
16.61055,-0.1276856,-6.005787,0.0001871372,startPoint,16.61055,-0.1276856,-6.005787,60.94342,-70.32,0.4034879,18.45132
16.61054,-0.1276852,-6.005787,0.0001824671,startPoint,16.61054,-0.1276852,-6.005787,60.94342,-70.32,0.4034879,18.45132
16.61053,-0.1276852,-6.005787,0.0001829978,startPoint,16.61053,-0.1276852,-6.005787,60.94341,-70.32,0.4034879,18.45132
16.61053,-0.1276852,-6.005787,0.0001794077,startPoint,16.61053,-0.1276852,-6.005787,60.94341,-70.32,0.4034879,18.45132
16.61053,-0.1276853,-6.005787,0.0001813995,startPoint,16.61053,-0.1276853,-6.005787,60.9434,-70.32,0.4034879,18.45132
16.61052,-0.1276853,-6.005787,0.0001868151,startPoint,16.61052,-0.1276853,-6.005787,60.94339,-70.32,0.4034879,18.45132
16.61052,-0.1276852,-6.005787,0.000184432,startPoint,16.61052,-0.1276852,-6.005787,60.94339,-70.32,0.4034879,18.45132
16.61051,-0.1276854,-6.005787,0.0001815012,startPoint,16.61051,-0.1276854,-6.005787,60.94338,-70.32,0.4034879,18.45132
16.6105,-0.127685,-6.005787,0.0001858316,startPoint,16.6105,-0.127685,-6.005787,60.94338,-70.32,0.4034879,18.45132
16.6105,-0.127685,-6.005787,0.0001798325,startPoint,16.6105,-0.127685,-6.005787,60.94337,-70.32,0.4034879,18.45132
16.61049,-0.1276852,-6.005787,0.0001833626,startPoint,16.61049,-0.1276852,-6.005787,60.94337,-70.32,0.4034879,18.45132
16.61049,-0.1276854,-6.005787,0.0001855809,startPoint,16.61049,-0.1276854,-6.005787,60.94336,-70.32,0.4034879,18.45132
16.61048,-0.1276855,-6.005787,0.0001790339,startPoint,16.61048,-0.1276855,-6.005787,60.94336,-70.32,0.4034879,18.45132
Assets/Scenes/SampleScene.unity
View file @
385f8dd0
...
...
@@ -149,7 +149,7 @@ Transform:
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
1
6
m_RootOrder
:
1
5
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1
&362651534
GameObject
:
...
...
@@ -256,7 +256,7 @@ Transform:
m_LocalScale
:
{
x
:
1
,
y
:
1.6230241
,
z
:
7.11823
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
1
5
m_RootOrder
:
1
4
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1
&373719878
GameObject
:
...
...
@@ -349,7 +349,7 @@ Transform:
m_LocalScale
:
{
x
:
1000.0001
,
y
:
1
,
z
:
999.9999
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
1
3
m_RootOrder
:
1
2
m_LocalEulerAnglesHint
:
{
x
:
0.611
,
y
:
0.0050000004
,
z
:
0.84700006
}
---
!u!224
&378007929
stripped
RectTransform
:
...
...
@@ -357,105 +357,6 @@ RectTransform:
type
:
3
}
m_PrefabInstance
:
{
fileID
:
1281597507
}
m_PrefabAsset
:
{
fileID
:
0
}
---
!u!1001
&698900617
PrefabInstance
:
m_ObjectHideFlags
:
0
serializedVersion
:
2
m_Modification
:
m_TransformParent
:
{
fileID
:
0
}
m_Modifications
:
-
target
:
{
fileID
:
2067545652315055972
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_Name
value
:
IKD_VehicleController_LeftSteering (1) Variant (1)
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2067545652315055972
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_IsActive
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2070773664156325756
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_LocalPosition.x
value
:
-30.68
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2070773664156325756
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_LocalPosition.y
value
:
0.5
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2070773664156325756
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_LocalPosition.z
value
:
29.523659
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2070773664156325756
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_LocalRotation.x
value
:
-0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2070773664156325756
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_LocalRotation.y
value
:
0.8369593
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2070773664156325756
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_LocalRotation.z
value
:
-0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2070773664156325756
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_LocalRotation.w
value
:
0.54726505
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2070773664156325756
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_RootOrder
value
:
9
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2070773664156325756
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_LocalEulerAnglesHint.x
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2070773664156325756
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_LocalEulerAnglesHint.y
value
:
113.64101
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2070773664156325756
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_LocalEulerAnglesHint.z
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2100905275978216170
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
manual
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2130689449446685592
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_Enabled
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2131247023373917512
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_Enabled
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2282217105664478002
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_AnchorMax.x
value
:
1
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
2282217105664478002
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
propertyPath
:
m_AnchorMax.y
value
:
1
objectReference
:
{
fileID
:
0
}
m_RemovedComponents
:
[]
m_SourcePrefab
:
{
fileID
:
100100000
,
guid
:
916384947382a4841bf79597a9e136ab
,
type
:
3
}
---
!u!1001
&704967053
PrefabInstance
:
m_ObjectHideFlags
:
0
...
...
@@ -630,7 +531,7 @@ Transform:
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
1
1
m_RootOrder
:
1
0
m_LocalEulerAnglesHint
:
{
x
:
50
,
y
:
-30
,
z
:
0
}
---
!u!1
&709509107
GameObject
:
...
...
@@ -643,7 +544,7 @@ GameObject:
-
component
:
{
fileID
:
709509109
}
-
component
:
{
fileID
:
709509108
}
m_Layer
:
0
m_Name
:
B
ebuger
m_Name
:
D
ebuger
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
...
...
@@ -674,7 +575,7 @@ Transform:
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
1
7
m_RootOrder
:
1
6
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1001
&781198528
PrefabInstance
:
...
...
@@ -1879,7 +1780,7 @@ Transform:
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
1
2
m_RootOrder
:
1
1
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1
&1971670298
GameObject
:
...
...
@@ -2086,7 +1987,7 @@ Transform:
-
{
fileID
:
1614892422
}
-
{
fileID
:
1389580375
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
1
4
m_RootOrder
:
1
3
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!1001
&2047104779
PrefabInstance
:
...
...
@@ -2572,7 +2473,7 @@ PrefabInstance:
-
target
:
{
fileID
:
8768170946503470804
,
guid
:
56244b3d420d5a3459e68449d1f30fbf
,
type
:
3
}
propertyPath
:
m_RootOrder
value
:
10
value
:
9
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
8768170946503470804
,
guid
:
56244b3d420d5a3459e68449d1f30fbf
,
type
:
3
}
...
...
Assets/TurnTheGameOn/IK Driver/Scripts/Utility/IKD_DemoController.cs
View file @
385f8dd0
...
...
@@ -11,7 +11,7 @@ namespace TurnTheGameOn.IKDriver
public
GameObject
rightSteeringController
;
public
Transform
spawnPoint
;
public
DemoVehicles
defaultDemoVehicle
;
p
rivate
Transform
currentDemoVehicle
;
p
ublic
Transform
currentDemoVehicle
;
void
Awake
()
{
...
...
Assets/scripts/CarCustom.cs
View file @
385f8dd0
...
...
@@ -2,6 +2,7 @@
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.SceneManagement
;
public
class
CarCustom
:
MonoBehaviour
{
...
...
@@ -25,7 +26,7 @@ public class CarCustom : MonoBehaviour
public
void
spawnFirstPlace
()
{
transform
.
position
=
CheckPointBlock
.
position
;
transform
.
rotation
=
CheckPointBlock
.
rotaion
;
String
thisScene
=
SceneManager
.
GetActiveScene
().
name
;
SceneManager
.
LoadScene
(
thisScene
)
;
}
}
Assets/scripts/DataSaver.cs
View file @
385f8dd0
...
...
@@ -189,10 +189,14 @@ public class DataSaver : MonoBehaviour
private
IEnumerator
find
()
{
int
i
=
0
;
/*
while (true)
{
GameObject[] temp = GameObject.FindGameObjectsWithTag("Player");
Debug.Log(temp[0].name);
Debug.Log(temp[1].name);
if (temp != null)
{
print(temp.Length);
...
...
@@ -207,7 +211,9 @@ public class DataSaver : MonoBehaviour
i++;
yield return null;
}
}*/
myPlayer
=
IKD_DemoController
.
instance
.
currentDemoVehicle
.
gameObject
.
GetComponent
<
IKD_VehicleController
>();
while
(
true
)
{
...
...
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