小地图修改
This commit is contained in:
parent
a514562eb6
commit
b16b36ba44
|
@ -58,7 +58,7 @@ Camera:
|
||||||
near clip plane: 0.3
|
near clip plane: 0.3
|
||||||
far clip plane: 1000
|
far clip plane: 1000
|
||||||
field of view: 60
|
field of view: 60
|
||||||
orthographic: 0
|
orthographic: 1
|
||||||
orthographic size: 5
|
orthographic size: 5
|
||||||
m_Depth: 0
|
m_Depth: 0
|
||||||
m_CullingMask:
|
m_CullingMask:
|
||||||
|
|
|
@ -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.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
|
m_UseRadianceAmbientProbe: 0
|
||||||
--- !u!157 &3
|
--- !u!157 &3
|
||||||
LightmapSettings:
|
LightmapSettings:
|
||||||
|
@ -63100,7 +63100,7 @@ MonoBehaviour:
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
randSeed: 1703683171
|
randSeed: 1713787906
|
||||||
isDoingTransition: 0
|
isDoingTransition: 0
|
||||||
minimumHeight: 0
|
minimumHeight: 0
|
||||||
--- !u!114 &1820978574
|
--- !u!114 &1820978574
|
||||||
|
@ -86128,7 +86128,7 @@ PrefabInstance:
|
||||||
- target: {fileID: 343842254875067695, guid: 708d7629e400aea448483dd5797ffa36,
|
- target: {fileID: 343842254875067695, guid: 708d7629e400aea448483dd5797ffa36,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.y
|
propertyPath: m_LocalPosition.y
|
||||||
value: 500
|
value: 350
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 343842254875067695, guid: 708d7629e400aea448483dd5797ffa36,
|
- target: {fileID: 343842254875067695, guid: 708d7629e400aea448483dd5797ffa36,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
|
@ -119,11 +119,15 @@ public class RadarManger : MonoBehaviour
|
||||||
/// 批量标处理能力
|
/// 批量标处理能力
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int NumberOfProbes = 0;
|
public int NumberOfProbes = 0;
|
||||||
|
/// <summary>
|
||||||
|
/// 渲染小地图摄像机
|
||||||
|
/// </summary>
|
||||||
|
public Camera Mincamera;
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
equipmentCommon = GetComponent<EquipmentCommon>();
|
equipmentCommon = GetComponent<EquipmentCommon>();
|
||||||
aniRandar = GetComponent<Animator>();
|
aniRandar = GetComponent<Animator>();
|
||||||
|
Mincamera = GameObject.Find("Minimap Camera").GetComponent<Camera>();
|
||||||
if (RadarUi == null)
|
if (RadarUi == null)
|
||||||
{
|
{
|
||||||
CreateRadarUI();
|
CreateRadarUI();
|
||||||
|
@ -233,6 +237,7 @@ public class RadarManger : MonoBehaviour
|
||||||
case "探测距离:":
|
case "探测距离:":
|
||||||
DetectionRange = weaponitemone[i].para_value;
|
DetectionRange = weaponitemone[i].para_value;
|
||||||
detectionRadius = float.Parse(DetectionRange) * 100;
|
detectionRadius = float.Parse(DetectionRange) * 100;
|
||||||
|
Mincamera.orthographicSize = detectionRadius;
|
||||||
break;
|
break;
|
||||||
case "近盲区:":
|
case "近盲区:":
|
||||||
NearBlindArea = weaponitemone[i].para_value;
|
NearBlindArea = weaponitemone[i].para_value;
|
||||||
|
@ -326,6 +331,7 @@ public class RadarManger : MonoBehaviour
|
||||||
{
|
{
|
||||||
Debug.LogError("鼠标进入");
|
Debug.LogError("鼠标进入");
|
||||||
RadarUi.transform.localScale = Vector3.one;
|
RadarUi.transform.localScale = Vector3.one;
|
||||||
|
Mincamera.transform.position = new Vector3(transform.position.x,350, transform.position.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnMouseExit()
|
private void OnMouseExit()
|
||||||
|
|
Loading…
Reference in New Issue