From 5e6b07dfd747708d5c2e5ab184310bd96f566400 Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 15 Dec 2024 21:59:06 -0600 Subject: [PATCH] Remove debug statements --- Assets/CameraControl.cs | 1 - Assets/Scenes/GameScene.unity | 19 +++++++++++++++++++ Assets/Unit.cs | 2 -- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Assets/CameraControl.cs b/Assets/CameraControl.cs index cbd2de9..6e1ab95 100644 --- a/Assets/CameraControl.cs +++ b/Assets/CameraControl.cs @@ -98,7 +98,6 @@ public class CameraControl : MonoBehaviour } // We need to apply the delta between the initial click position and the current mouse position to the camera's position var worldDelta = camera.ScreenToWorldPoint(Input.mousePosition) - camera.ScreenToWorldPoint(_panningClickPosition.Value); - Debug.Log($"worldDelta: {worldDelta} screenDelta: {(Vector2)Input.mousePosition - _panningClickPosition.Value}"); transform.position = new Vector3( _panningCameraPosition.Value.x - worldDelta.x, diff --git a/Assets/Scenes/GameScene.unity b/Assets/Scenes/GameScene.unity index edf0418..5089eb5 100644 --- a/Assets/Scenes/GameScene.unity +++ b/Assets/Scenes/GameScene.unity @@ -179,6 +179,7 @@ GameObject: - component: {fileID: 517509224} - component: {fileID: 517509223} - component: {fileID: 517509226} + - component: {fileID: 517509227} m_Layer: 0 m_Name: Main Camera m_TagString: MainCamera @@ -304,6 +305,24 @@ MonoBehaviour: m_MipBias: 0 m_VarianceClampScale: 0.9 m_ContrastAdaptiveSharpening: 0 +--- !u!114 &517509227 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 517509222} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8530b0688112b3a4f95bbe6d545e24eb, type: 3} + m_Name: + m_EditorClassIdentifier: + MoveSpeed: 17.8 + MinZoom: 1.2 + MaxZoom: 10 + ZoomSpeed: 2.11 + TargetPositionMultiplier: 11.2 + TargetZoomMultiplier: 21.7 --- !u!1 &1194077224 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Unit.cs b/Assets/Unit.cs index 26b67a4..b171f32 100644 --- a/Assets/Unit.cs +++ b/Assets/Unit.cs @@ -41,8 +41,6 @@ public class Unit : MonoBehaviour var unitAngle = planet.GetUnitAngle(this); var targetDistance = (Mathf.Sin(BobbingOffset + Time.time) + 1) / 2; targetDistance = Mathf.Lerp(0.35f, 0.8f, targetDistance); - if (TreeIndex == 0) - Debug.Log(targetDistance); transform.position = planet.GetSurfacePosition(unitAngle, targetDistance); planet.Tree.Points[TreeIndex] = transform.position;