回答編集履歴
1
typo修正
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
{
|
32
32
|
|
33
|
-
transform.position += new Vector3(Mathf.Sin(direction), Mathf.Cos(direction)) * speed * Time.deltaTime;
|
33
|
+
transform.position += new Vector3(Mathf.Sin(direction), Mathf.Cos(direction), 0) * speed * Time.deltaTime;
|
34
34
|
|
35
35
|
}
|
36
36
|
|