小地图修改

This commit is contained in:
yulong 2024-01-03 17:09:40 +08:00
parent a514562eb6
commit b16b36ba44
3 changed files with 11 additions and 5 deletions

View File

@ -58,7 +58,7 @@ Camera:
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic: 1
orthographic size: 5
m_Depth: 0
m_CullingMask:

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 1113159741}
m_IndirectSpecularColor: {r: 0.16231853, g: 0.30614844, b: 0.6693007, a: 1}
m_IndirectSpecularColor: {r: 0.16231444, g: 0.3061461, b: 0.66931677, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@ -63100,7 +63100,7 @@ MonoBehaviour:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
randSeed: 1703683171
randSeed: 1713787906
isDoingTransition: 0
minimumHeight: 0
--- !u!114 &1820978574
@ -86128,7 +86128,7 @@ PrefabInstance:
- target: {fileID: 343842254875067695, guid: 708d7629e400aea448483dd5797ffa36,
type: 3}
propertyPath: m_LocalPosition.y
value: 500
value: 350
objectReference: {fileID: 0}
- target: {fileID: 343842254875067695, guid: 708d7629e400aea448483dd5797ffa36,
type: 3}

View File

@ -119,11 +119,15 @@ public class RadarManger : MonoBehaviour
/// 批量标处理能力
/// </summary>
public int NumberOfProbes = 0;
/// <summary>
/// 渲染小地图摄像机
/// </summary>
public Camera Mincamera;
void Start()
{
equipmentCommon = GetComponent<EquipmentCommon>();
aniRandar = GetComponent<Animator>();
Mincamera = GameObject.Find("Minimap Camera").GetComponent<Camera>();
if (RadarUi == null)
{
CreateRadarUI();
@ -233,6 +237,7 @@ public class RadarManger : MonoBehaviour
case "探测距离:":
DetectionRange = weaponitemone[i].para_value;
detectionRadius = float.Parse(DetectionRange) * 100;
Mincamera.orthographicSize = detectionRadius;
break;
case "近盲区:":
NearBlindArea = weaponitemone[i].para_value;
@ -326,6 +331,7 @@ public class RadarManger : MonoBehaviour
{
Debug.LogError("鼠标进入");
RadarUi.transform.localScale = Vector3.one;
Mincamera.transform.position = new Vector3(transform.position.x,350, transform.position.z);
}
private void OnMouseExit()