teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

さらに文法の修正

2020/10/08 06:33

投稿

U_U_Jenkins
U_U_Jenkins

スコア110

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 = Insntantiate(obj); or GameObject.Find(???)
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

文法修正

2020/10/08 06:33

投稿

U_U_Jenkins
U_U_Jenkins

スコア110

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 = new Insntantiate(obj); or GameObject.Find(???)
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