Remove debug statements

This commit is contained in:
2024-12-15 21:59:06 -06:00
parent dfd208ad6b
commit 5e6b07dfd7
3 changed files with 19 additions and 3 deletions

View File

@@ -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 // 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); var worldDelta = camera.ScreenToWorldPoint(Input.mousePosition) - camera.ScreenToWorldPoint(_panningClickPosition.Value);
Debug.Log($"worldDelta: {worldDelta} screenDelta: {(Vector2)Input.mousePosition - _panningClickPosition.Value}");
transform.position = new Vector3( transform.position = new Vector3(
_panningCameraPosition.Value.x - worldDelta.x, _panningCameraPosition.Value.x - worldDelta.x,

View File

@@ -179,6 +179,7 @@ GameObject:
- component: {fileID: 517509224} - component: {fileID: 517509224}
- component: {fileID: 517509223} - component: {fileID: 517509223}
- component: {fileID: 517509226} - component: {fileID: 517509226}
- component: {fileID: 517509227}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@@ -304,6 +305,24 @@ MonoBehaviour:
m_MipBias: 0 m_MipBias: 0
m_VarianceClampScale: 0.9 m_VarianceClampScale: 0.9
m_ContrastAdaptiveSharpening: 0 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 --- !u!1 &1194077224
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@@ -41,8 +41,6 @@ public class Unit : MonoBehaviour
var unitAngle = planet.GetUnitAngle(this); var unitAngle = planet.GetUnitAngle(this);
var targetDistance = (Mathf.Sin(BobbingOffset + Time.time) + 1) / 2; var targetDistance = (Mathf.Sin(BobbingOffset + Time.time) + 1) / 2;
targetDistance = Mathf.Lerp(0.35f, 0.8f, targetDistance); targetDistance = Mathf.Lerp(0.35f, 0.8f, targetDistance);
if (TreeIndex == 0)
Debug.Log(targetDistance);
transform.position = planet.GetSurfacePosition(unitAngle, targetDistance); transform.position = planet.GetSurfacePosition(unitAngle, targetDistance);
planet.Tree.Points[TreeIndex] = transform.position; planet.Tree.Points[TreeIndex] = transform.position;