diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index ea69582..7b82a74 100644 --- a/Assets/Scenes/SampleScene.unity +++ b/Assets/Scenes/SampleScene.unity @@ -1931,7 +1931,7 @@ Camera: m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 2 - m_BackGroundColor: {r: 0.3764706, g: 0.85882354, b: 0.664143, a: 0} + m_BackGroundColor: {r: 0.49529448, g: 0.85882354, b: 0.3764706, a: 0} m_projectionMatrixMode: 1 m_GateFitMode: 2 m_FOVAxisMode: 0 @@ -2078,7 +2078,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0.85882354, g: 0.3764706, b: 0.73264116, a: 1} + m_Color: {r: 0.85882354, g: 0.43667537, b: 0.3764706, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 diff --git a/Assets/_Scripts/PlayerScripts/PlayerEvents.cs b/Assets/_Scripts/PlayerScripts/PlayerEvents.cs index b72d9aa..7f5412a 100644 --- a/Assets/_Scripts/PlayerScripts/PlayerEvents.cs +++ b/Assets/_Scripts/PlayerScripts/PlayerEvents.cs @@ -1,5 +1,4 @@ using System; -using UnityEngine; public class PlayerEvents { diff --git a/Assets/_Scripts/PlayerScripts/PlayerInput.cs b/Assets/_Scripts/PlayerScripts/PlayerInput.cs index 32bdf4d..7b0b174 100644 --- a/Assets/_Scripts/PlayerScripts/PlayerInput.cs +++ b/Assets/_Scripts/PlayerScripts/PlayerInput.cs @@ -1,13 +1,11 @@ using UnityEngine; using UnityEngine.InputSystem; -using UnityEngine.InputSystem.Controls; public class PlayerInput : MonoBehaviour { private Camera _camera => Camera.main; [SerializeField] private PlayerController _playerController; - [SerializeField] private ScoreManager _scoreManager; - + private void Update() { //Check mouse input @@ -21,7 +19,6 @@ public class PlayerInput : MonoBehaviour //Check touchscreen input if (Touchscreen.current != null && Touchscreen.current.primaryTouch.press.wasPressedThisFrame) { - Debug.Log(_camera.ScreenToWorldPoint(Touchscreen.current.primaryTouch.position.ReadValue())); _playerController.OnTouch(_camera.ScreenToWorldPoint(Touchscreen.current.touches[0].position.ReadValue())); PlayerEvents.SendScreenTouched(); return;