Compare commits

..

No commits in common. "457d8cc8d1dd9f24c0fa7b5c627ffeae2c9bccf0" and "ace58eb9143af3129fcd83273a17b3975d66154e" have entirely different histories.

3 changed files with 8 additions and 13 deletions

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1 m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0} m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 1113159741} m_Sun: {fileID: 1113159741}
m_IndirectSpecularColor: {r: 0.16235206, g: 0.30609706, b: 0.6687956, a: 1} m_IndirectSpecularColor: {r: 0.1623277, g: 0.30598003, b: 0.66832066, a: 1}
m_UseRadianceAmbientProbe: 0 m_UseRadianceAmbientProbe: 0
--- !u!157 &3 --- !u!157 &3
LightmapSettings: LightmapSettings:
@ -68599,7 +68599,6 @@ MonoBehaviour:
distance: 0 distance: 0
isScale: 0 isScale: 0
satelliteImagery: {fileID: 1378295488} satelliteImagery: {fileID: 1378295488}
rect: {fileID: 6368481659655708048}
--- !u!1 &1720385560 --- !u!1 &1720385560
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -70681,7 +70680,7 @@ MonoBehaviour:
m_PreInfinity: 2 m_PreInfinity: 2
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
randSeed: 684474421 randSeed: 102493484
isDoingTransition: 0 isDoingTransition: 0
minimumHeight: 0 minimumHeight: 0
--- !u!114 &1820978574 --- !u!114 &1820978574
@ -100605,8 +100604,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -0.000030518, y: 0} m_AnchoredPosition: {x: -71, y: -28.6}
m_SizeDelta: {x: 14.560303, y: -131.06934} m_SizeDelta: {x: 167.36975, y: -41.188477}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &6368481659655708051 --- !u!1 &6368481659655708051
GameObject: GameObject:

View File

@ -26,7 +26,6 @@ public class PostureController : MonoBehaviour
public Camera satelliteImagery; public Camera satelliteImagery;
public Coroutine currentCoroutine; public Coroutine currentCoroutine;
public RectTransform rect;
// Start is called before the first frame update // Start is called before the first frame update
void Awake() void Awake()
@ -42,13 +41,10 @@ public class PostureController : MonoBehaviour
{ {
if (Input.GetMouseButton(0)) if (Input.GetMouseButton(0))
{ {
if (RectTransformUtility.RectangleContainsScreenPoint(rect, Input.mousePosition)) float mouseX = Input.GetAxis("Mouse X") * 10f * Time.deltaTime;
{ float mouseY = Input.GetAxis("Mouse Y") * 10f * Time.deltaTime;
float mouseX = Input.GetAxis("Mouse X") * 10f * Time.deltaTime; satelliteImagery.transform.Translate(Vector3.down * mouseY * 60f);
float mouseY = Input.GetAxis("Mouse Y") * 10f * Time.deltaTime; satelliteImagery.transform.Translate(Vector3.left * mouseX * 60f);
satelliteImagery.transform.Translate(Vector3.down * mouseY * 60f);
satelliteImagery.transform.Translate(Vector3.left * mouseX * 60f);
}
} }
} }