質問編集履歴
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -82,7 +82,7 @@
|
|
82
82
|
|
83
83
|
Vector3 tmp = sphere.transform.position;
|
84
84
|
|
85
|
-
sphere.transform.position = Vector3.
|
85
|
+
sphere.transform.position = Vector3.MoveTowards(tmp, target1.transform.position, speed);
|
86
86
|
|
87
87
|
yield return new WaitForSeconds(3.0f) ;
|
88
88
|
|
@@ -90,7 +90,7 @@
|
|
90
90
|
|
91
91
|
Vector3 tmp2 = sphere.transform.position;
|
92
92
|
|
93
|
-
sphere.transform.position = Vector3.
|
93
|
+
sphere.transform.position = Vector3.MoveTowards(tmp2, target2.transform.position, speed);
|
94
94
|
|
95
95
|
yield return new WaitForSeconds(3.0f);
|
96
96
|
|
@@ -98,7 +98,7 @@
|
|
98
98
|
|
99
99
|
Vector3 tmp3 = sphere.transform.position;
|
100
100
|
|
101
|
-
sphere.transform.position = Vector3.
|
101
|
+
sphere.transform.position = Vector3.MoveTowards(tmp3, startPos, speed);
|
102
102
|
|
103
103
|
yield return new WaitForSeconds(3.0f);
|
104
104
|
|
@@ -118,6 +118,8 @@
|
|
118
118
|
|
119
119
|
}
|
120
120
|
|
121
|
+
|
122
|
+
|
121
123
|
```
|
122
124
|
|
123
125
|
|