回答編集履歴

1

headVertices、shaftVerticesの型を変更

2019/05/09 17:12

投稿

Bongo
Bongo

スコア10807

test CHANGED
@@ -30,17 +30,17 @@
30
30
 
31
31
  // 矢印の原型となる頂点の位置、およびそれらを繋ぐ順番
32
32
 
33
- private static readonly Vector3[] headVertices =
33
+ private static readonly Vector2[] headVertices =
34
-
34
+
35
- {
35
+ {
36
-
36
+
37
- Vector3.up + (Vector3.left * 0.5f),
37
+ Vector2.up + (Vector2.left * 0.5f),
38
-
38
+
39
- Vector3.right,
39
+ Vector2.right,
40
-
40
+
41
- Vector3.zero,
41
+ Vector2.zero,
42
-
42
+
43
- Vector3.down + (Vector3.left * 0.5f)
43
+ Vector2.down + (Vector2.left * 0.5f)
44
44
 
45
45
  };
46
46
 
@@ -54,15 +54,15 @@
54
54
 
55
55
  };
56
56
 
57
- private static readonly Vector3[] shaftVertices =
57
+ private static readonly Vector2[] shaftVertices =
58
-
58
+
59
- {
59
+ {
60
-
60
+
61
- Vector3.zero,
61
+ Vector2.zero,
62
-
62
+
63
- Vector3.up + Vector3.right,
63
+ Vector2.up + Vector2.right,
64
-
64
+
65
- Vector3.down + Vector3.right
65
+ Vector2.down + Vector2.right
66
66
 
67
67
  };
68
68