質問編集履歴

1

一部誤植修正

2018/09/17 12:40

投稿

Raliemon
Raliemon

スコア12

test CHANGED
File without changes
test CHANGED
@@ -42,7 +42,7 @@
42
42
 
43
43
  [SerializeField]
44
44
 
45
- Vector2 rotationSpeed;
45
+ Vector2 RotationSpeed;
46
46
 
47
47
 
48
48
 
@@ -52,13 +52,13 @@
52
52
 
53
53
  {
54
54
 
55
- Vector2 CurrentAngles = transform.transform.localEulerAngles;
55
+ Vector2 currentAngles = transform.transform.localEulerAngles;
56
56
 
57
- CurrentAngles.x += delta.y * rotationSpeed.x;
57
+ currentAngles.x += delta.y * RotationSpeed.x;
58
58
 
59
- CurrentAngles.y -= delta.x * rotationSpeed.y;
59
+ currentAngles.y -= delta.x * RotationSpeed.y;
60
60
 
61
- transform.transform.localEulerAngles = CurrentAngles;
61
+ transform.transform.localEulerAngles = currentAngles;
62
62
 
63
63
  }
64
64