Compare commits
3 Commits
ace58eb914
...
457d8cc8d1
| Author | SHA1 | Date |
|---|---|---|
|
|
457d8cc8d1 | |
|
|
e2b76a9a6c | |
|
|
44b18c7d3e |
|
|
@ -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.1623277, g: 0.30598003, b: 0.66832066, a: 1}
|
m_IndirectSpecularColor: {r: 0.16235206, g: 0.30609706, b: 0.6687956, a: 1}
|
||||||
m_UseRadianceAmbientProbe: 0
|
m_UseRadianceAmbientProbe: 0
|
||||||
--- !u!157 &3
|
--- !u!157 &3
|
||||||
LightmapSettings:
|
LightmapSettings:
|
||||||
|
|
@ -68599,6 +68599,7 @@ 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
|
||||||
|
|
@ -70680,7 +70681,7 @@ MonoBehaviour:
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
randSeed: 102493484
|
randSeed: 684474421
|
||||||
isDoingTransition: 0
|
isDoingTransition: 0
|
||||||
minimumHeight: 0
|
minimumHeight: 0
|
||||||
--- !u!114 &1820978574
|
--- !u!114 &1820978574
|
||||||
|
|
@ -100604,8 +100605,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: -71, y: -28.6}
|
m_AnchoredPosition: {x: -0.000030518, y: 0}
|
||||||
m_SizeDelta: {x: 167.36975, y: -41.188477}
|
m_SizeDelta: {x: 14.560303, y: -131.06934}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &6368481659655708051
|
--- !u!1 &6368481659655708051
|
||||||
GameObject:
|
GameObject:
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -26,6 +26,7 @@ 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()
|
||||||
|
|
@ -40,6 +41,8 @@ public class PostureController : MonoBehaviour
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
if (Input.GetMouseButton(0))
|
if (Input.GetMouseButton(0))
|
||||||
|
{
|
||||||
|
if (RectTransformUtility.RectangleContainsScreenPoint(rect, Input.mousePosition))
|
||||||
{
|
{
|
||||||
float mouseX = Input.GetAxis("Mouse X") * 10f * Time.deltaTime;
|
float mouseX = Input.GetAxis("Mouse X") * 10f * Time.deltaTime;
|
||||||
float mouseY = Input.GetAxis("Mouse Y") * 10f * Time.deltaTime;
|
float mouseY = Input.GetAxis("Mouse Y") * 10f * Time.deltaTime;
|
||||||
|
|
@ -47,6 +50,7 @@ public class PostureController : MonoBehaviour
|
||||||
satelliteImagery.transform.Translate(Vector3.left * mouseX * 60f);
|
satelliteImagery.transform.Translate(Vector3.left * mouseX * 60f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void OnUp()
|
private void OnUp()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue