We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fe7bad commit 743fa21Copy full SHA for 743fa21
2 files changed
Assets/Scripts/CameraMovement.cs
@@ -18,10 +18,12 @@ private void Awake()
18
Debug.LogWarning("ERROR: DPadController reference is missing.");
19
}
20
21
- if (walkSpeed < 0 || CamSensitivity < 0)
+ if (walkSpeed <= 0 || CamSensitivity <= 0)
22
{
23
Debug.LogWarning("ERROR: WalkSpeed and Camera Sensitivity is invalid");
24
25
+
26
27
28
29
private void OnEnable()
Assets/Scripts/DPadController.cs
@@ -2,7 +2,18 @@
2
using UnityEngine.InputSystem;
3
4
public class DPadController : MonoBehaviour
5
6
7
+ [SerializeField] private GameObject dpadUI;
8
9
+private void Awake()
10
+ {
11
+ if (dpadUI != null)
12
13
+ dpadUI.SetActive(Application.isMobilePlatform);
14
+ }
15
16
17
private Vector2 dPadInput;
public void OnDPadUpPressed(InputAction.CallbackContext context)
0 commit comments