Commit 385f8dd0 authored by Danial KordModanlou's avatar Danial KordModanlou

data saver problem solved

parent b2db4e15
...@@ -37,3 +37,16 @@ distance x from first pivot,distance y from first pivot,distance z from first pi ...@@ -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.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.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 -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
...@@ -149,7 +149,7 @@ Transform: ...@@ -149,7 +149,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 16 m_RootOrder: 15
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &362651534 --- !u!1 &362651534
GameObject: GameObject:
...@@ -256,7 +256,7 @@ Transform: ...@@ -256,7 +256,7 @@ Transform:
m_LocalScale: {x: 1, y: 1.6230241, z: 7.11823} m_LocalScale: {x: 1, y: 1.6230241, z: 7.11823}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 15 m_RootOrder: 14
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &373719878 --- !u!1 &373719878
GameObject: GameObject:
...@@ -349,7 +349,7 @@ Transform: ...@@ -349,7 +349,7 @@ Transform:
m_LocalScale: {x: 1000.0001, y: 1, z: 999.9999} m_LocalScale: {x: 1000.0001, y: 1, z: 999.9999}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 13 m_RootOrder: 12
m_LocalEulerAnglesHint: {x: 0.611, y: 0.0050000004, z: 0.84700006} m_LocalEulerAnglesHint: {x: 0.611, y: 0.0050000004, z: 0.84700006}
--- !u!224 &378007929 stripped --- !u!224 &378007929 stripped
RectTransform: RectTransform:
...@@ -357,105 +357,6 @@ RectTransform: ...@@ -357,105 +357,6 @@ RectTransform:
type: 3} type: 3}
m_PrefabInstance: {fileID: 1281597507} m_PrefabInstance: {fileID: 1281597507}
m_PrefabAsset: {fileID: 0} 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 --- !u!1001 &704967053
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
...@@ -630,7 +531,7 @@ Transform: ...@@ -630,7 +531,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 11 m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &709509107 --- !u!1 &709509107
GameObject: GameObject:
...@@ -643,7 +544,7 @@ GameObject: ...@@ -643,7 +544,7 @@ GameObject:
- component: {fileID: 709509109} - component: {fileID: 709509109}
- component: {fileID: 709509108} - component: {fileID: 709509108}
m_Layer: 0 m_Layer: 0
m_Name: Bebuger m_Name: Debuger
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
...@@ -674,7 +575,7 @@ Transform: ...@@ -674,7 +575,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 17 m_RootOrder: 16
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &781198528 --- !u!1001 &781198528
PrefabInstance: PrefabInstance:
...@@ -1879,7 +1780,7 @@ Transform: ...@@ -1879,7 +1780,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 12 m_RootOrder: 11
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1971670298 --- !u!1 &1971670298
GameObject: GameObject:
...@@ -2086,7 +1987,7 @@ Transform: ...@@ -2086,7 +1987,7 @@ Transform:
- {fileID: 1614892422} - {fileID: 1614892422}
- {fileID: 1389580375} - {fileID: 1389580375}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 14 m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &2047104779 --- !u!1001 &2047104779
PrefabInstance: PrefabInstance:
...@@ -2572,7 +2473,7 @@ PrefabInstance: ...@@ -2572,7 +2473,7 @@ PrefabInstance:
- target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf, - target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 10 value: 9
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf, - target: {fileID: 8768170946503470804, guid: 56244b3d420d5a3459e68449d1f30fbf,
type: 3} type: 3}
......
...@@ -11,7 +11,7 @@ namespace TurnTheGameOn.IKDriver ...@@ -11,7 +11,7 @@ namespace TurnTheGameOn.IKDriver
public GameObject rightSteeringController; public GameObject rightSteeringController;
public Transform spawnPoint; public Transform spawnPoint;
public DemoVehicles defaultDemoVehicle; public DemoVehicles defaultDemoVehicle;
private Transform currentDemoVehicle; public Transform currentDemoVehicle;
void Awake () void Awake ()
{ {
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.SceneManagement;
public class CarCustom : MonoBehaviour public class CarCustom : MonoBehaviour
{ {
...@@ -25,7 +26,7 @@ public class CarCustom : MonoBehaviour ...@@ -25,7 +26,7 @@ public class CarCustom : MonoBehaviour
public void spawnFirstPlace() public void spawnFirstPlace()
{ {
transform.position = CheckPointBlock.position; String thisScene = SceneManager.GetActiveScene().name;
transform.rotation = CheckPointBlock.rotaion; SceneManager.LoadScene(thisScene);
} }
} }
...@@ -189,10 +189,14 @@ public class DataSaver : MonoBehaviour ...@@ -189,10 +189,14 @@ public class DataSaver : MonoBehaviour
private IEnumerator find() private IEnumerator find()
{ {
int i = 0; int i = 0;
/*
while (true) while (true)
{ {
GameObject[] temp = GameObject.FindGameObjectsWithTag("Player"); GameObject[] temp = GameObject.FindGameObjectsWithTag("Player");
Debug.Log(temp[0].name);
Debug.Log(temp[1].name);
if (temp != null) if (temp != null)
{ {
print(temp.Length); print(temp.Length);
...@@ -207,7 +211,9 @@ public class DataSaver : MonoBehaviour ...@@ -207,7 +211,9 @@ public class DataSaver : MonoBehaviour
i++; i++;
yield return null; yield return null;
} }*/
myPlayer = IKD_DemoController.instance.currentDemoVehicle.gameObject.GetComponent<IKD_VehicleController>();
while (true) while (true)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment