mirror of
https://github.com/Xevion/Rebirth.git
synced 2025-12-14 14:12:45 -06:00
Remove debug statements
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user