Compare commits

..

3 Commits

Author SHA1 Message Date
YangHua 457d8cc8d1 12 2024-03-07 15:59:58 +08:00
YangHua e2b76a9a6c 融合 2024-03-07 15:55:21 +08:00
YangHua 44b18c7d3e 修改态势显示 2024-03-07 15:50:32 +08:00
3 changed files with 13 additions and 8 deletions

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
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
--- !u!157 &3
LightmapSettings:
@ -68599,6 +68599,7 @@ MonoBehaviour:
distance: 0
isScale: 0
satelliteImagery: {fileID: 1378295488}
rect: {fileID: 6368481659655708048}
--- !u!1 &1720385560
GameObject:
m_ObjectHideFlags: 0
@ -70680,7 +70681,7 @@ MonoBehaviour:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
randSeed: 102493484
randSeed: 684474421
isDoingTransition: 0
minimumHeight: 0
--- !u!114 &1820978574
@ -100604,8 +100605,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -71, y: -28.6}
m_SizeDelta: {x: 167.36975, y: -41.188477}
m_AnchoredPosition: {x: -0.000030518, y: 0}
m_SizeDelta: {x: 14.560303, y: -131.06934}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &6368481659655708051
GameObject:

View File

@ -26,6 +26,7 @@ public class PostureController : MonoBehaviour
public Camera satelliteImagery;
public Coroutine currentCoroutine;
public RectTransform rect;
// Start is called before the first frame update
void Awake()
@ -40,6 +41,8 @@ public class PostureController : MonoBehaviour
void Update()
{
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;
@ -47,6 +50,7 @@ public class PostureController : MonoBehaviour
satelliteImagery.transform.Translate(Vector3.left * mouseX * 60f);
}
}
}
private void OnUp()
{