回答編集履歴
2
さらに文法の修正
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
//WaypointProgressTrackerがアタッチされているオブジェクトをGetComponent
|
5
5
|
WaypointProgressTracker wpt = GameObjet.Find(???).GetComponent<WaypointProgressTracker>();
|
6
6
|
//WaypointCircuitがアタッチされているオブジェクトをInstantiate or GameObject.Find
|
7
|
-
GameObject way_point_circuit_object =
|
7
|
+
GameObject way_point_circuit_object = Instantiate(obj); or GameObject.Find(???)
|
8
8
|
//wpt.circuitがWaypointCircuitという型であれば出来る。
|
9
9
|
wpt.circuit = way_point_circuit_object.GetComponent<WaypointCircuit>();
|
10
10
|
|
1
文法修正
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
//WaypointProgressTrackerがアタッチされているオブジェクトをGetComponent
|
5
5
|
WaypointProgressTracker wpt = GameObjet.Find(???).GetComponent<WaypointProgressTracker>();
|
6
6
|
//WaypointCircuitがアタッチされているオブジェクトをInstantiate or GameObject.Find
|
7
|
-
GameObject way_point_circuit_object =
|
7
|
+
GameObject way_point_circuit_object = Insntantiate(obj); or GameObject.Find(???)
|
8
8
|
//wpt.circuitがWaypointCircuitという型であれば出来る。
|
9
9
|
wpt.circuit = way_point_circuit_object.GetComponent<WaypointCircuit>();
|
10
10
|
|