Browse Source

地图参数调整

Void_F 7 months ago
parent
commit
6c3b8f4bdd
3 changed files with 184 additions and 1150 deletions
  1. 9 2
      Assets/MapGenerator.cs
  2. 152 47
      Assets/Prefabs/MiniMap.prefab
  3. 23 1101
      Assets/Scene 1.unity

+ 9 - 2
Assets/MapGenerator.cs

@@ -3,6 +3,12 @@ using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
+public enum MapTextureType
+{
+    png,
+    jpg
+}
+
 public class MapGenerator : MonoBehaviour
 {
     public string nameHeard = "L";
@@ -15,8 +21,9 @@ public class MapGenerator : MonoBehaviour
 
     private bool isInit = false;
     private bool isShow = false;
+    public MapTextureType TextureType;
     public bool initDone = false;
-
+    
     public void InitMap()
     {
         if (!isInit)
@@ -85,7 +92,7 @@ public class MapGenerator : MonoBehaviour
         Material tempMat = new Material(Shader.Find("Unlit/Texture"));
         meshRenderer.material = tempMat;
 
-        TextureLoadHelp._Instance.LoadTexFromUrl_AB(ab_Name + "_" + _x, texName + ".jpg", tempMat);
+        TextureLoadHelp._Instance.LoadTexFromUrl_AB(ab_Name + "_" + _x, texName + "."+TextureType.ToString(), tempMat);
 
         Mesh mesh = new Mesh();
         mesh.vertices = new Vector3[]

+ 152 - 47
Assets/Prefabs/MiniMap.prefab

@@ -48,6 +48,7 @@ MonoBehaviour:
   x_Count: 18
   y_Count: 18
   ab_Name: l16
+  TextureType: 1
   initDone: 0
 --- !u!1 &970675354
 GameObject:
@@ -154,7 +155,7 @@ GameObject:
   serializedVersion: 6
   m_Component:
   - component: {fileID: 2003060781}
-  - component: {fileID: 698894512}
+  - component: {fileID: 2346122589074947712}
   m_Layer: 0
   m_Name: L10
   m_TagString: Untagged
@@ -170,14 +171,14 @@ Transform:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 2003060780}
   m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
-  m_LocalPosition: {x: 8.35, y: 5.4, z: 0}
+  m_LocalPosition: {x: -5.14, y: -8.06, z: 0}
   m_LocalScale: {x: 26.7, y: 26.7, z: 26.7}
   m_ConstrainProportionsScale: 1
   m_Children: []
   m_Father: {fileID: 7069582396450853087}
   m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!114 &698894512
+--- !u!114 &2346122589074947712
 MonoBehaviour:
   m_ObjectHideFlags: 0
   m_CorrespondingSourceObject: {fileID: 0}
@@ -189,10 +190,11 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: 0579c1e5d5d7a4c4e8b1a9b0a7cdace8, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  nameHeard: GCJ02_L10_8x8
-  x_Count: 8
-  y_Count: 8
+  nameHeard: GCJ02_L10_7x7
+  x_Count: 7
+  y_Count: 7
   ab_Name: l10
+  TextureType: 0
   initDone: 0
 --- !u!1 &496817698963821334
 GameObject:
@@ -203,7 +205,7 @@ GameObject:
   serializedVersion: 6
   m_Component:
   - component: {fileID: 2567778366401332439}
-  - component: {fileID: 1554618008}
+  - component: {fileID: 6067788808130706223}
   m_Layer: 0
   m_Name: L11
   m_TagString: Untagged
@@ -219,14 +221,14 @@ Transform:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 496817698963821334}
   m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
-  m_LocalPosition: {x: 1.65, y: -1.3, z: -0.1}
-  m_LocalScale: {x: 13.35, y: 13.35, z: 13.35}
+  m_LocalPosition: {x: -5.01, y: -8.01, z: -0.1}
+  m_LocalScale: {x: 26.63, y: 26.63, z: 26.63}
   m_ConstrainProportionsScale: 1
   m_Children: []
   m_Father: {fileID: 7069582396450853087}
   m_RootOrder: 1
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!114 &1554618008
+--- !u!114 &6067788808130706223
 MonoBehaviour:
   m_ObjectHideFlags: 0
   m_CorrespondingSourceObject: {fileID: 0}
@@ -238,10 +240,11 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: 0579c1e5d5d7a4c4e8b1a9b0a7cdace8, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  nameHeard: GCJ02_L11_15x15
-  x_Count: 15
-  y_Count: 15
+  nameHeard: GCJ02_L11_6x6
+  x_Count: 6
+  y_Count: 6
   ab_Name: l11
+  TextureType: 0
   initDone: 0
 --- !u!1 &788774413769781883
 GameObject:
@@ -436,6 +439,7 @@ MonoBehaviour:
   x_Count: 28
   y_Count: 28
   ab_Name: l14
+  TextureType: 1
   initDone: 0
 --- !u!1 &4147678506791997976
 GameObject:
@@ -560,7 +564,7 @@ GameObject:
   serializedVersion: 6
   m_Component:
   - component: {fileID: 986239157061919458}
-  - component: {fileID: 2842383563211211514}
+  - component: {fileID: 4800506167232718931}
   m_Layer: 0
   m_Name: L13
   m_TagString: Untagged
@@ -576,14 +580,14 @@ Transform:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 4495922360462199476}
   m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
-  m_LocalPosition: {x: 5, y: -4.64, z: -0.2}
+  m_LocalPosition: {x: -10.02, y: -6.31, z: -0.25}
   m_LocalScale: {x: 6.66, y: 6.66, z: 6.66}
   m_ConstrainProportionsScale: 1
   m_Children: []
   m_Father: {fileID: 7069582396450853087}
   m_RootOrder: 3
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!114 &2842383563211211514
+--- !u!114 &4800506167232718931
 MonoBehaviour:
   m_ObjectHideFlags: 0
   m_CorrespondingSourceObject: {fileID: 0}
@@ -595,10 +599,11 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: 0579c1e5d5d7a4c4e8b1a9b0a7cdace8, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  nameHeard: GCJ02_L12_29x29
-  x_Count: 29
-  y_Count: 29
-  ab_Name: l12
+  nameHeard: GCJ02_L13_21x21
+  x_Count: 21
+  y_Count: 21
+  ab_Name: l13
+  TextureType: 0
   initDone: 0
 --- !u!1 &5076499884380538670
 GameObject:
@@ -702,7 +707,7 @@ GameObject:
   serializedVersion: 6
   m_Component:
   - component: {fileID: 577233970219236087}
-  - component: {fileID: 70418578}
+  - component: {fileID: 1783256895343635419}
   m_Layer: 0
   m_Name: L12
   m_TagString: Untagged
@@ -718,14 +723,14 @@ Transform:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 7033161969292257526}
   m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
-  m_LocalPosition: {x: 5, y: -4.64, z: -0.2}
-  m_LocalScale: {x: 6.66, y: 6.66, z: 6.66}
+  m_LocalPosition: {x: -8.69, y: -8.1, z: -0.2}
+  m_LocalScale: {x: 13.34, y: 13.34, z: 13.34}
   m_ConstrainProportionsScale: 1
   m_Children: []
   m_Father: {fileID: 7069582396450853087}
   m_RootOrder: 2
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!114 &70418578
+--- !u!114 &1783256895343635419
 MonoBehaviour:
   m_ObjectHideFlags: 0
   m_CorrespondingSourceObject: {fileID: 0}
@@ -737,10 +742,11 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: 0579c1e5d5d7a4c4e8b1a9b0a7cdace8, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  nameHeard: GCJ02_L12_29x29
-  x_Count: 29
-  y_Count: 29
+  nameHeard: GCJ02_L12_11x11
+  x_Count: 11
+  y_Count: 11
   ab_Name: l12
+  TextureType: 0
   initDone: 0
 --- !u!1 &7069582396450853080
 GameObject:
@@ -808,31 +814,38 @@ MonoBehaviour:
   - map: {fileID: 1372896261}
     cameraDistanceMin: 1
     cameraDistanceMax: 5
-    min_X_Range: {x: -86.82561, y: 97.94611}
-    max_X_Range: {x: -83.09612, y: 93.50658}
-    min_Y_Range: {x: 87.02734, y: -98.36328}
-    max_Y_Range: {x: 84.50391, y: -96.28906}
-  - map: {fileID: 70418578}
+    min_X_Range: {x: -86.65892, y: 98.11491}
+    max_X_Range: {x: -82.26139, y: 94.34151}
+    min_Y_Range: {x: 87.02734, y: -98.39063}
+    max_Y_Range: {x: 84.40625, y: -96.39844}
+  - map: {fileID: 4800506167232718931}
     cameraDistanceMin: 5
-    cameraDistanceMax: 14
+    cameraDistanceMax: 12
     min_X_Range: {x: -81.24686, y: 74.49241}
-    max_X_Range: {x: -78.74198, y: 86.22892}
+    max_X_Range: {x: -67.0229, y: 48.8611}
     min_Y_Range: {x: 74.8125, y: -88.70703}
-    max_Y_Range: {x: 83.21484, y: -94.07422}
-  - map: {fileID: 1554618008}
-    cameraDistanceMin: 14
-    cameraDistanceMax: 33
+    max_Y_Range: {x: 55.94922, y: -70.39453}
+  - map: {fileID: 1783256895343635419}
+    cameraDistanceMin: 12
+    cameraDistanceMax: 21
     min_X_Range: {x: -65.53413, y: 84.32221}
-    max_X_Range: {x: -67.85579, y: 65.18819}
+    max_X_Range: {x: -59.17823, y: 45.08656}
     min_Y_Range: {x: 87.48047, y: -84.44141}
-    max_Y_Range: {x: 78.11719, y: -84.40625}
-  - map: {fileID: 698894512}
-    cameraDistanceMin: 33
-    cameraDistanceMax: 63
+    max_Y_Range: {x: 51.78516, y: -71.16016}
+  - map: {fileID: 6067788808130706223}
+    cameraDistanceMin: 21
+    cameraDistanceMax: 46
     min_X_Range: {x: -31.00754, y: 79.38039}
-    max_X_Range: {x: -39.7767, y: 45.13012}
+    max_X_Range: {x: -34.48228, y: 31.61955}
     min_Y_Range: {x: 89.00391, y: -66.66797}
-    max_Y_Range: {x: 72.66016, y: -68.72656}
+    max_Y_Range: {x: 42.13672, y: -64.86719}
+  - map: {fileID: 2346122589074947712}
+    cameraDistanceMin: 46
+    cameraDistanceMax: 82
+    min_X_Range: {x: -31.00754, y: 79.38039}
+    max_X_Range: {x: -8.216382, y: 10.97159}
+    min_Y_Range: {x: 89.00391, y: -66.66797}
+    max_Y_Range: {x: 32.27734, y: -60.49219}
   MapStayList:
   - map: {fileID: 4078470270552625224}
     cameraDistanceMin: 1
@@ -1051,17 +1064,33 @@ PrefabInstance:
   m_Modification:
     m_TransformParent: {fileID: 7069582396450853087}
     m_Modifications:
+    - target: {fileID: 972601076534137853, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
     - target: {fileID: 1501427291809273059, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
       propertyPath: m_RootOrder
       value: 16
       objectReference: {fileID: 0}
+    - target: {fileID: 1501427291809273059, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_LocalScale.x
+      value: 7700
+      objectReference: {fileID: 0}
+    - target: {fileID: 1501427291809273059, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_LocalScale.y
+      value: 8500
+      objectReference: {fileID: 0}
+    - target: {fileID: 1501427291809273059, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_LocalScale.z
+      value: 7999.9995
+      objectReference: {fileID: 0}
     - target: {fileID: 1501427291809273059, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
       propertyPath: m_LocalPosition.x
-      value: -13.17
+      value: -14.2
       objectReference: {fileID: 0}
     - target: {fileID: 1501427291809273059, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
       propertyPath: m_LocalPosition.y
-      value: -11.33
+      value: -13.8
       objectReference: {fileID: 0}
     - target: {fileID: 1501427291809273059, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
       propertyPath: m_LocalPosition.z
@@ -1095,11 +1124,87 @@ PrefabInstance:
       propertyPath: m_LocalEulerAnglesHint.z
       value: 180
       objectReference: {fileID: 0}
+    - target: {fileID: 1501427291809273059, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_ConstrainProportionsScale
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 1687888338004452061, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
     - target: {fileID: 2278245844407684697, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
       propertyPath: m_Name
       value: XingZhengDiKuai
       objectReference: {fileID: 0}
     - target: {fileID: 2278245844407684697, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 1
+      objectReference: {fileID: 0}
+    - target: {fileID: 3139960059946641826, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 3373750078019531206, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 3865280596819639549, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 4208076358392035755, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 4422274588713574183, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 4627266024004433862, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 4854565201103372627, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 5073345748227957465, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 5217594137760817152, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 5295029378909927034, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 5300951628410983142, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 5572634300180077298, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 6272039813906372202, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 6877245286499302348, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 7806471026613959155, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 7950188204950797770, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 8912811565481638427, guid: 2f5f831865ee8734fbb27f35695ff716, type: 3}
       propertyPath: m_IsActive
       value: 0
       objectReference: {fileID: 0}

File diff suppressed because it is too large
+ 23 - 1101
Assets/Scene 1.unity


Some files were not shown because too many files changed in this diff