質問編集履歴

2

誤字

2019/02/13 07:18

投稿

SaharaDesert
SaharaDesert

スコア16

test CHANGED
File without changes
test CHANGED
@@ -78,7 +78,7 @@
78
78
 
79
79
  void Update() {
80
80
 
81
- if (Input.GetKey("a") && !jumpChecker) {
81
+ if (Input.GetKey("a") && !jumpChecker2) {
82
82
 
83
83
  //((Y軸+止まる位置)/Y軸)
84
84
 
@@ -124,8 +124,6 @@
124
124
 
125
125
 
126
126
 
127
- jumpStart2 = false;
128
-
129
127
  }
130
128
 
131
129
  if (jumpChecker2)

1

誤字

2019/02/13 07:18

投稿

SaharaDesert
SaharaDesert

スコア16

test CHANGED
File without changes
test CHANGED
@@ -110,7 +110,7 @@
110
110
 
111
111
  initVelocityY2 = 2 * height2 / time2;
112
112
 
113
- initPositionY2 = target.transform.position.y;
113
+ initPositionY2 = transform.position.y;
114
114
 
115
115
 
116
116
 
@@ -118,7 +118,7 @@
118
118
 
119
119
  initVelocityX2 = (width2*hoho) / jumpTime2; // 距離widthをjumpTime秒かけて移動する場合の速度
120
120
 
121
- initPositionX2 = target.transform.position.x; // ジャンプ開始時のX座標を覚えておく
121
+ initPositionX2 = transform.position.x; // ジャンプ開始時のX座標を覚えておく
122
122
 
123
123
 
124
124
 
@@ -182,7 +182,7 @@
182
182
 
183
183
 
184
184
 
185
- target.transform.position = pos;
185
+ transform.position = pos;
186
186
 
187
187
  }
188
188