回答編集履歴
1
headVertices、shaftVerticesの型を変更
test
CHANGED
@@ -30,17 +30,17 @@
|
|
30
30
|
|
31
31
|
// 矢印の原型となる頂点の位置、およびそれらを繋ぐ順番
|
32
32
|
|
33
|
-
private static readonly Vector
|
33
|
+
private static readonly Vector2[] headVertices =
|
34
|
-
|
34
|
+
|
35
|
-
{
|
35
|
+
{
|
36
|
-
|
36
|
+
|
37
|
-
Vector
|
37
|
+
Vector2.up + (Vector2.left * 0.5f),
|
38
|
-
|
38
|
+
|
39
|
-
Vector
|
39
|
+
Vector2.right,
|
40
|
-
|
40
|
+
|
41
|
-
Vector
|
41
|
+
Vector2.zero,
|
42
|
-
|
42
|
+
|
43
|
-
Vector
|
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 Vector
|
57
|
+
private static readonly Vector2[] shaftVertices =
|
58
|
-
|
58
|
+
|
59
|
-
{
|
59
|
+
{
|
60
|
-
|
60
|
+
|
61
|
-
Vector
|
61
|
+
Vector2.zero,
|
62
|
-
|
62
|
+
|
63
|
-
Vector
|
63
|
+
Vector2.up + Vector2.right,
|
64
|
-
|
64
|
+
|
65
|
-
Vector
|
65
|
+
Vector2.down + Vector2.right
|
66
66
|
|
67
67
|
};
|
68
68
|
|