|
@@ -57,8 +57,8 @@ public class OutLineController : MonoBehaviour
|
|
|
}
|
|
|
foreach (var sw in SwitchSObjs)
|
|
|
{
|
|
|
- datas.Add(sw.GetInstanceID().ToString());
|
|
|
- datas.Add(sw.name);
|
|
|
+ datas.Add(sw.transform.GetInstanceID().ToString());
|
|
|
+ datas.Add(sw.transform.name);
|
|
|
}
|
|
|
foreach (var traction in TractionObjs)
|
|
|
{
|
|
@@ -70,8 +70,8 @@ public class OutLineController : MonoBehaviour
|
|
|
if (tr.gameObject.GetComponent<Outline>())
|
|
|
tr.gameObject.GetComponent<Outline>().eraseRenderer = true;
|
|
|
}
|
|
|
- datas.Add(traction.GetInstanceID().ToString());
|
|
|
- datas.Add(traction.name);
|
|
|
+ datas.Add(traction.transform.GetInstanceID().ToString());
|
|
|
+ datas.Add(traction.transform.name);
|
|
|
}
|
|
|
|
|
|
foreach (var door in DoorObjs)
|
|
@@ -84,8 +84,8 @@ public class OutLineController : MonoBehaviour
|
|
|
if (dr.gameObject.GetComponent<Outline>())
|
|
|
dr.gameObject.GetComponent<Outline>().eraseRenderer = true;
|
|
|
}
|
|
|
- datas.Add(door.GetInstanceID().ToString());
|
|
|
- datas.Add(door.name);
|
|
|
+ datas.Add(door.transform.GetInstanceID().ToString());
|
|
|
+ datas.Add(door.transform.name);
|
|
|
}
|
|
|
foreach (var door in MeteoroObjs)
|
|
|
{
|
|
@@ -97,8 +97,8 @@ public class OutLineController : MonoBehaviour
|
|
|
if (dr.gameObject.GetComponent<Outline>())
|
|
|
dr.gameObject.GetComponent<Outline>().eraseRenderer = true;
|
|
|
}
|
|
|
- datas.Add(door.GetInstanceID().ToString());
|
|
|
- datas.Add(door.name);
|
|
|
+ datas.Add(door.transform.GetInstanceID().ToString());
|
|
|
+ datas.Add(door.transform.name);
|
|
|
}
|
|
|
foreach (var yh in YHs)
|
|
|
{
|
|
@@ -110,8 +110,8 @@ public class OutLineController : MonoBehaviour
|
|
|
if (dr.gameObject.GetComponent<Outline>())
|
|
|
dr.gameObject.GetComponent<Outline>().eraseRenderer = true;
|
|
|
}
|
|
|
- datas.Add(yh.GetInstanceID().ToString());
|
|
|
- datas.Add(yh.name);
|
|
|
+ datas.Add(yh.transform.GetInstanceID().ToString());
|
|
|
+ datas.Add(yh.transform.name);
|
|
|
}
|
|
|
foreach (var lh in LHs)
|
|
|
{
|
|
@@ -123,8 +123,8 @@ public class OutLineController : MonoBehaviour
|
|
|
if (dr.gameObject.GetComponent<Outline>())
|
|
|
dr.gameObject.GetComponent<Outline>().eraseRenderer = true;
|
|
|
}
|
|
|
- datas.Add(lh.GetInstanceID().ToString());
|
|
|
- datas.Add(lh.name);
|
|
|
+ datas.Add(lh.transform.GetInstanceID().ToString());
|
|
|
+ datas.Add(lh.transform.name);
|
|
|
}
|
|
|
foreach (var dl in DLs)
|
|
|
{
|
|
@@ -136,8 +136,8 @@ public class OutLineController : MonoBehaviour
|
|
|
if (dr.gameObject.GetComponent<Outline>())
|
|
|
dr.gameObject.GetComponent<Outline>().eraseRenderer = true;
|
|
|
}
|
|
|
- datas.Add(dl.GetInstanceID().ToString());
|
|
|
- datas.Add(dl.name);
|
|
|
+ datas.Add(dl.transform.GetInstanceID().ToString());
|
|
|
+ datas.Add(dl.transform.name);
|
|
|
}
|
|
|
foreach (var cab in Cabinets)
|
|
|
{
|
|
@@ -149,8 +149,8 @@ public class OutLineController : MonoBehaviour
|
|
|
if (dr.gameObject.GetComponent<Outline>())
|
|
|
dr.gameObject.GetComponent<Outline>().eraseRenderer = true;
|
|
|
}
|
|
|
- datas.Add(cab.GetInstanceID().ToString());
|
|
|
- datas.Add(cab.name);
|
|
|
+ datas.Add(cab.transform.GetInstanceID().ToString());
|
|
|
+ datas.Add(cab.transform.name);
|
|
|
}
|
|
|
foreach (var vos in VideoObjs)
|
|
|
{
|
|
@@ -162,8 +162,8 @@ public class OutLineController : MonoBehaviour
|
|
|
if (v.gameObject.GetComponent<Outline>())
|
|
|
v.gameObject.GetComponent<Outline>().eraseRenderer = true;
|
|
|
}
|
|
|
- datas.Add(vos.GetInstanceID().ToString());
|
|
|
- datas.Add(vos.name);
|
|
|
+ datas.Add(vos.transform.GetInstanceID().ToString());
|
|
|
+ datas.Add(vos.transform.name);
|
|
|
}
|
|
|
}
|
|
|
public static void save()
|