質問編集履歴
2
無駄なコードを削除しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,23 +54,19 @@
|
|
54
54
|
|
55
55
|
if(child.position.y >= 0f) {
|
56
56
|
|
57
|
-
|
57
|
+
|
58
58
|
|
59
59
|
child.localPosition = new Vector3(0, -100f ,0);
|
60
60
|
|
61
|
-
|
61
|
+
|
62
62
|
|
63
63
|
}
|
64
64
|
|
65
65
|
if(child.position.y <= -100f) {
|
66
66
|
|
67
|
-
|
67
|
+
|
68
|
-
|
69
|
-
|
70
68
|
|
71
69
|
child.localPosition = new Vector3(0,0f,0);
|
72
|
-
|
73
|
-
child.GetComponentInChildren<Cloth>().enabled = true;
|
74
70
|
|
75
71
|
}
|
76
72
|
|
1
数値が間違っていたため
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
child.GetComponentInChildren<Cloth>().enabled = false;
|
58
58
|
|
59
|
-
child.localPosition = new Vector3(0, -1
|
59
|
+
child.localPosition = new Vector3(0, -100f ,0);
|
60
60
|
|
61
61
|
child.GetComponentInChildren<Cloth>().enabled = true;
|
62
62
|
|