Browse Source

添加作战部署图标显示

develop
杨栋梁 4 years ago
parent
commit
0c82861891
  1. 14
      Assets/Editor/SceneToolFloor.cs
  2. 8
      Assets/Scenes/DongYouLiQing.unity
  3. 45632
      Assets/WanDaGround/SceneAll.prefab

14
Assets/Editor/SceneToolFloor.cs

@ -502,12 +502,13 @@ public class SceneToolFloor
for (int i = 0; i < obj.Length; i++)
{
if (obj[i].GetComponent<XFSS>())
{
if (!obj[i].transform.Find("Quad"))
{
GameObject quad = GameObject.Instantiate(quadMat.Quad);
quad.name = "Quad";
quad.transform.parent = obj[i].transform;
quad.transform.localPosition = Vector3.up * 10;
quad.transform.localScale = Vector3.one * 3;
switch (obj[i].GetComponent<XFSS>().type)
{
case XFSSType.:
@ -528,6 +529,17 @@ public class SceneToolFloor
default:
break;
}
quad.layer = LayerMask.NameToLayer("FightDeploy");
obj[i].transform.Find("Quad").localScale = new Vector3(3, 3, 3);
quad.gameObject.SetActive(false);
}
else
{
obj[i].transform.Find("Quad").gameObject.layer = LayerMask.NameToLayer("FightDeploy");
obj[i].transform.Find("Quad").localScale = new Vector3(3, 3, 3);
obj[i].transform.Find("Quad").gameObject.SetActive(false);
}
}
}

8
Assets/Scenes/DongYouLiQing.unity

@ -2066,7 +2066,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 654}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -1.2, y: 3, z: -16}
m_LocalPosition: {x: -1.2, y: 34.9, z: -16}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 7618}
@ -2735,7 +2735,7 @@ Camera:
y: 0
width: 1
height: 1
near clip plane: 3
near clip plane: 1
far clip plane: 2000
field of view: 60
orthographic: 0
@ -147486,7 +147486,7 @@ PrefabInstance:
m_Modifications:
- target: {fileID: 1127680000703472, guid: 863dfe406d9716349adc35fb55cd722c, type: 3}
propertyPath: m_IsActive
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1133126294849292, guid: 863dfe406d9716349adc35fb55cd722c, type: 3}
propertyPath: m_Name
@ -147498,7 +147498,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1592383463139072, guid: 863dfe406d9716349adc35fb55cd722c, type: 3}
propertyPath: m_IsActive
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114401284974226682, guid: 863dfe406d9716349adc35fb55cd722c,
type: 3}

45632
Assets/WanDaGround/SceneAll.prefab

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save