Browse Source

合成二期

develop2
杨栋梁 1 year ago
parent
commit
7d8a8d8bb1
  1. 2076
      Assets/02ShiMinGuangChang/GuiLinShiMinGuangChang.prefab
  2. 111
      Assets/Editor/DeleteMissingScripts.cs
  3. 8
      Assets/ShiYanMscPublic2.meta
  4. BIN
      Assets/StreamingAssets/AssetBundles/GuiLinShiMinGuangChangAB/GuiLinShiMinGuangChangAB
  5. 2
      Assets/StreamingAssets/AssetBundles/GuiLinShiMinGuangChangAB/GuiLinShiMinGuangChangAB.manifest
  6. BIN
      Assets/StreamingAssets/AssetBundles/GuiLinShiMinGuangChangAB/buildingscene
  7. 8
      Assets/StreamingAssets/AssetBundles/GuiLinShiMinGuangChangAB/buildingscene.manifest

2076
Assets/02ShiMinGuangChang/GuiLinShiMinGuangChang.prefab

File diff suppressed because it is too large Load Diff

111
Assets/Editor/DeleteMissingScripts.cs

@ -56,10 +56,10 @@ public class DeleteMissingScripts : EditorWindow
{
types.Add(CloneObjType.LiveBuildCar);
}
if (!types.Contains(CloneObjType.EmergencyVehicle))
{
types.Add(CloneObjType.EmergencyVehicle);
}
//if (!types.Contains(CloneObjType.EmergencyVehicle))
//{
// types.Add(CloneObjType.EmergencyVehicle);
//}
if (!types.Contains(CloneObjType.Cruiser))
{
types.Add(CloneObjType.Cruiser);
@ -68,4 +68,107 @@ public class DeleteMissingScripts : EditorWindow
}
}
}
[MenuItem("Tools/添加克隆类型帮助类(非油罐类型)")]
public static void AddCloneTypesHelper()
{
Transform[] obj = Selection.GetTransforms(SelectionMode.Deep);
for (int i = 0; i < obj.Length; i++)
{
if (obj[i].GetComponent<CloneableEnums>())
{
if (obj[i].gameObject.layer == LayerMask.NameToLayer("SoldierRoad"))
{
if (FindShiNei(obj[i]))
{
Debug.Log("室内人能走:" + obj[i].name);
if (!obj[i].GetComponent<CloneEnumsHelp>())
{
obj[i].gameObject.AddComponent<CloneEnumsHelp>();
}
obj[i].GetComponent<CloneEnumsHelp>().cloneOnFloorType = CloneOnFloorType.ShiNeiMan;
}
else
{
Debug.Log("室外人能走:" + obj[i].name);
if (!obj[i].GetComponent<CloneEnumsHelp>())
{
obj[i].gameObject.AddComponent<CloneEnumsHelp>();
}
obj[i].GetComponent<CloneEnumsHelp>().cloneOnFloorType = CloneOnFloorType.ShiWaiMan;
}
}
if (obj[i].gameObject.layer == LayerMask.NameToLayer("CarRoad"))
{
if (FindShiNei(obj[i]))
{
Debug.Log("室内车能走:" + obj[i].name);
if (!obj[i].GetComponent<CloneEnumsHelp>())
{
obj[i].gameObject.AddComponent<CloneEnumsHelp>();
}
obj[i].GetComponent<CloneEnumsHelp>().cloneOnFloorType = CloneOnFloorType.ShiWaiCar;
}
else
{
Debug.Log("室外车能走:" + obj[i].name);
if (!obj[i].GetComponent<CloneEnumsHelp>())
{
obj[i].gameObject.AddComponent<CloneEnumsHelp>();
}
obj[i].GetComponent<CloneEnumsHelp>().cloneOnFloorType = CloneOnFloorType.ShiWaiCar;
}
}
if (obj[i].GetComponent<CloneGameObjInfo>())
{
if (obj[i].GetComponent<CloneGameObjInfo>().gameObjType == CloneObjType.IndoorFireHydrant)
{
Debug.Log("室内消火栓:" + obj[i].name);
if (!obj[i].GetComponent<CloneEnumsHelp>())
{
obj[i].gameObject.AddComponent<CloneEnumsHelp>();
}
obj[i].GetComponent<CloneEnumsHelp>().cloneOnFloorType = CloneOnFloorType.ShiNeiXHS;
}
}
}
}
}
[MenuItem("Tools/检查是否有没有添加的克隆类型")]
public static void CheckEmptyCloneTypes()
{
Transform[] obj = Selection.GetTransforms(SelectionMode.Deep);
for (int i = 0; i < obj.Length; i++)
{
if (obj[i].GetComponent<CloneableEnums>())
{
if (!obj[i].GetComponent<CloneEnumsHelp>())
{
Debug.Log(obj[i].name);
// obj[i].gameObject.AddComponent<CloneEnumsHelp>();
}
}
}
}
private static bool FindShiNei(Transform p)
{
if (p.name.ToLower() == "shinei")
{
return true;
}
else
{
if (p.parent != null)
{
return FindShiNei(p.parent);
}
else
{
return false;
}
}
}
}

8
Assets/ShiYanMscPublic2.meta

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ec1e8c4da38834749839a6f32cfda193
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/StreamingAssets/AssetBundles/GuiLinShiMinGuangChangAB/GuiLinShiMinGuangChangAB

Binary file not shown.

2
Assets/StreamingAssets/AssetBundles/GuiLinShiMinGuangChangAB/GuiLinShiMinGuangChangAB.manifest

@ -1,5 +1,5 @@
ManifestFileVersion: 0
CRC: 3976378319
CRC: 948926612
AssetBundleManifest:
AssetBundleInfos:
Info_0:

BIN
Assets/StreamingAssets/AssetBundles/GuiLinShiMinGuangChangAB/buildingscene

Binary file not shown.

8
Assets/StreamingAssets/AssetBundles/GuiLinShiMinGuangChangAB/buildingscene.manifest

@ -1,12 +1,12 @@
ManifestFileVersion: 0
CRC: 3408771614
CRC: 4200037231
Hashes:
AssetFileHash:
serializedVersion: 2
Hash: 0f4cd8bcbe00f0cae1eee2f42ede1390
Hash: a6d506d5532d5d3f27cfa07f0a5dbadd
TypeTreeHash:
serializedVersion: 2
Hash: a7cc0f34bc6e576b6ebc2a1cb68d4ce4
Hash: 27732afb0a84223f25e4b7294e749ee6
HashAppended: 0
ClassTypes:
- Class: 1
@ -61,6 +61,8 @@ ClassTypes:
Script: {fileID: 11500000, guid: b133d14efd54f9841a1659ef37479be7, type: 3}
- Class: 114
Script: {fileID: 11500000, guid: 49a6ba4f46ec21b4c8a83dce618eda97, type: 3}
- Class: 114
Script: {fileID: 11500000, guid: b8b046bc0ab99e94cb2c70fd441b8fc7, type: 3}
- Class: 115
Script: {instanceID: 0}
- Class: 123

Loading…
Cancel
Save