Răsfoiți Sursa

传送门出怪

LAPTOP-OM1V99U2\永远de小亡灵 1 an în urmă
părinte
comite
9c2265a329

+ 8 - 1
ActionTowerDefense/Assets/Gen/SingleCreateEnemyConfig.cs

@@ -24,6 +24,7 @@ public sealed partial class SingleCreateEnemyConfig :  Bright.Config.BeanBase
         { if(!_json["Time"].IsNumber) { throw new SerializationException(); }  Time = _json["Time"]; }
         { if(!_json["TimeInterval"].IsNumber) { throw new SerializationException(); }  TimeInterval = _json["TimeInterval"]; }
         { var __json0 = _json["Position"]; if(!__json0.IsArray) { throw new SerializationException(); } Position = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0;  { if(!__e0.IsNumber) { throw new SerializationException(); }  __v0 = __e0; }  Position.Add(__v0); }   }
+        { if(!_json["PortalsID"].IsNumber) { throw new SerializationException(); }  PortalsID = _json["PortalsID"]; }
         { if(!_json["YRandomRange"].IsNumber) { throw new SerializationException(); }  YRandomRange = _json["YRandomRange"]; }
         { if(!_json["ZRandomRange"].IsNumber) { throw new SerializationException(); }  ZRandomRange = _json["ZRandomRange"]; }
         { if(!_json["AttackRatio"].IsNumber) { throw new SerializationException(); }  AttackRatio = _json["AttackRatio"]; }
@@ -31,7 +32,7 @@ public sealed partial class SingleCreateEnemyConfig :  Bright.Config.BeanBase
         PostInit();
     }
 
-    public SingleCreateEnemyConfig(int ID, int EnemyID, int Count, float Time, float TimeInterval, System.Collections.Generic.List<float> Position, float YRandomRange, float ZRandomRange, float AttackRatio, float HPRatio ) 
+    public SingleCreateEnemyConfig(int ID, int EnemyID, int Count, float Time, float TimeInterval, System.Collections.Generic.List<float> Position, int PortalsID, float YRandomRange, float ZRandomRange, float AttackRatio, float HPRatio ) 
     {
         this.ID = ID;
         this.EnemyID = EnemyID;
@@ -39,6 +40,7 @@ public sealed partial class SingleCreateEnemyConfig :  Bright.Config.BeanBase
         this.Time = Time;
         this.TimeInterval = TimeInterval;
         this.Position = Position;
+        this.PortalsID = PortalsID;
         this.YRandomRange = YRandomRange;
         this.ZRandomRange = ZRandomRange;
         this.AttackRatio = AttackRatio;
@@ -76,6 +78,10 @@ public sealed partial class SingleCreateEnemyConfig :  Bright.Config.BeanBase
     /// </summary>
     public System.Collections.Generic.List<float> Position { get; private set; }
     /// <summary>
+    /// 出怪传送门ID
+    /// </summary>
+    public int PortalsID { get; private set; }
+    /// <summary>
     /// Y轴随机范围
     /// </summary>
     public float YRandomRange { get; private set; }
@@ -113,6 +119,7 @@ public sealed partial class SingleCreateEnemyConfig :  Bright.Config.BeanBase
         + "Time:" + Time + ","
         + "TimeInterval:" + TimeInterval + ","
         + "Position:" + Bright.Common.StringUtil.CollectionToString(Position) + ","
+        + "PortalsID:" + PortalsID + ","
         + "YRandomRange:" + YRandomRange + ","
         + "ZRandomRange:" + ZRandomRange + ","
         + "AttackRatio:" + AttackRatio + ","

+ 86 - 22
ActionTowerDefense/Assets/Resources/Prefab/Portals.prefab

@@ -61,12 +61,12 @@ Transform:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 693438331892580523}
   m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
-  m_LocalPosition: {x: 0, y: 0, z: 0}
+  m_LocalPosition: {x: 0, y: 2.5, z: 0}
   m_LocalScale: {x: 0.1, y: 5, z: 2}
   m_ConstrainProportionsScale: 0
   m_Children: []
   m_Father: {fileID: 4519038915193933628}
-  m_RootOrder: 0
+  m_RootOrder: 1
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
 --- !u!33 &693438331892580527
 MeshFilter:
@@ -174,12 +174,12 @@ Transform:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 693438332605768589}
   m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
-  m_LocalPosition: {x: 0, y: 0, z: 0}
+  m_LocalPosition: {x: 0, y: 2.5, z: 0}
   m_LocalScale: {x: 0.1, y: 5, z: 2}
   m_ConstrainProportionsScale: 0
   m_Children: []
   m_Father: {fileID: 511174756452552005}
-  m_RootOrder: 0
+  m_RootOrder: 1
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
 --- !u!33 &693438332605768577
 MeshFilter:
@@ -272,7 +272,7 @@ GameObject:
   - component: {fileID: 8883290495677836959}
   - component: {fileID: 8009091762114508820}
   m_Layer: 0
-  m_Name: Sphere
+  m_Name: Trigger
   m_TagString: Untagged
   m_Icon: {fileID: 0}
   m_NavMeshLayer: 0
@@ -285,13 +285,13 @@ Transform:
   m_PrefabInstance: {fileID: 0}
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 716715567097125074}
-  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
-  m_LocalPosition: {x: 0, y: 5.85, z: 0}
+  m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
+  m_LocalPosition: {x: 0, y: 6.5, z: 0}
   m_LocalScale: {x: 1, y: 1, z: 1}
   m_ConstrainProportionsScale: 0
   m_Children: []
-  m_Father: {fileID: 4519038915193933628}
-  m_RootOrder: 2
+  m_Father: {fileID: 8311445111652911327}
+  m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
 --- !u!33 &6141988690243497937
 MeshFilter:
@@ -351,7 +351,7 @@ SphereCollider:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 716715567097125074}
   m_Material: {fileID: 0}
-  m_IsTrigger: 0
+  m_IsTrigger: 1
   m_Enabled: 1
   serializedVersion: 2
   m_Radius: 0.5
@@ -382,12 +382,12 @@ Transform:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 896075485547733324}
   m_LocalRotation: {x: 0.5, y: -0.5, z: 0.5, w: 0.5}
-  m_LocalPosition: {x: -0.06, y: 0, z: 0}
+  m_LocalPosition: {x: -0.06, y: 2.5, z: 0}
   m_LocalScale: {x: 0.19999999, y: 1, z: 0.5}
   m_ConstrainProportionsScale: 0
   m_Children: []
   m_Father: {fileID: 511174756452552005}
-  m_RootOrder: 1
+  m_RootOrder: 2
   m_LocalEulerAnglesHint: {x: 90, y: 0, z: 90}
 --- !u!33 &4111854419997979616
 MeshFilter:
@@ -465,12 +465,12 @@ Transform:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 940914827984365639}
   m_LocalRotation: {x: 0.5, y: -0.5, z: 0.5, w: 0.5}
-  m_LocalPosition: {x: -0.06, y: 0, z: 0}
+  m_LocalPosition: {x: -0.06, y: 2.5, z: 0}
   m_LocalScale: {x: 0.2, y: 1, z: 0.5}
   m_ConstrainProportionsScale: 0
   m_Children: []
   m_Father: {fileID: 4519038915193933628}
-  m_RootOrder: 1
+  m_RootOrder: 2
   m_LocalEulerAnglesHint: {x: 90, y: 0, z: 90}
 --- !u!33 &6778799302892080217
 MeshFilter:
@@ -550,9 +550,9 @@ Transform:
   m_LocalScale: {x: 1, y: 1, z: 1}
   m_ConstrainProportionsScale: 0
   m_Children:
+  - {fileID: 3590854545405876268}
   - {fileID: 693438332605768588}
   - {fileID: 4612876546031983558}
-  - {fileID: 4821312215427420510}
   m_Father: {fileID: 693438331589553446}
   m_RootOrder: 1
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -569,7 +569,7 @@ GameObject:
   - component: {fileID: 6090429297245397378}
   - component: {fileID: 5703544163592586289}
   m_Layer: 0
-  m_Name: Sphere
+  m_Name: Trigger
   m_TagString: Untagged
   m_Icon: {fileID: 0}
   m_NavMeshLayer: 0
@@ -582,13 +582,13 @@ Transform:
   m_PrefabInstance: {fileID: 0}
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 3500049052013559827}
-  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
-  m_LocalPosition: {x: 0, y: 4.89, z: 0}
+  m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
+  m_LocalPosition: {x: 0, y: 6.5, z: 0}
   m_LocalScale: {x: 1, y: 1, z: 1}
   m_ConstrainProportionsScale: 0
   m_Children: []
-  m_Father: {fileID: 511174756452552005}
-  m_RootOrder: 2
+  m_Father: {fileID: 3590854545405876268}
+  m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
 --- !u!33 &8798429013371874650
 MeshFilter:
@@ -648,11 +648,43 @@ SphereCollider:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 3500049052013559827}
   m_Material: {fileID: 0}
-  m_IsTrigger: 0
+  m_IsTrigger: 1
   m_Enabled: 1
   serializedVersion: 2
   m_Radius: 0.5
   m_Center: {x: 0, y: 0, z: 0}
+--- !u!1 &4819541693565442404
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 3590854545405876268}
+  m_Layer: 0
+  m_Name: Core
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 0
+--- !u!4 &3590854545405876268
+Transform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 4819541693565442404}
+  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+  m_LocalPosition: {x: 0, y: 0, z: 0}
+  m_LocalScale: {x: 1, y: 1, z: 1}
+  m_ConstrainProportionsScale: 0
+  m_Children:
+  - {fileID: 4821312215427420510}
+  m_Father: {fileID: 511174756452552005}
+  m_RootOrder: 0
+  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
 --- !u!1 &6204547102456506843
 GameObject:
   m_ObjectHideFlags: 0
@@ -681,9 +713,41 @@ Transform:
   m_LocalScale: {x: 1, y: 1, z: 1}
   m_ConstrainProportionsScale: 0
   m_Children:
+  - {fileID: 8311445111652911327}
   - {fileID: 693438331892580522}
   - {fileID: 4687944456183145749}
-  - {fileID: 7832021821474816180}
   m_Father: {fileID: 693438331589553446}
   m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+--- !u!1 &6679047301605105475
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 8311445111652911327}
+  m_Layer: 0
+  m_Name: Core
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 0
+--- !u!4 &8311445111652911327
+Transform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 6679047301605105475}
+  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+  m_LocalPosition: {x: 0, y: 0, z: 0}
+  m_LocalScale: {x: 1, y: 1, z: 1}
+  m_ConstrainProportionsScale: 0
+  m_Children:
+  - {fileID: 7832021821474816180}
+  m_Father: {fileID: 4519038915193933628}
+  m_RootOrder: 0
+  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

+ 40 - 41
ActionTowerDefense/Assets/Scenes/SampleScene.unity

@@ -426,11 +426,6 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: 481b12dc18964dc4f879c5df3686f5fa, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  isTran: 0
-  pc: {fileID: 0}
-  isSpirit: 0
-  HitCols: []
-  cookNum: 0
   mecanim: {fileID: 0}
   meshRenderer: {fileID: 0}
   ani: {fileID: 0}
@@ -438,47 +433,44 @@ MonoBehaviour:
   rb: {fileID: 317380085}
   bodyTrans: {fileID: 0}
   beSearchTrigger: {fileID: 0}
+  searchTrigger: {fileID: 0}
   beHitTrigger: {fileID: 0}
   bodyCollider: {fileID: 0}
   uiHp: {fileID: 0}
   state: 0
+  totalHp: 100
+  hp: 0
+  isDie: 0
+  isRevive: 0
+  linked: 0
+  canNotAddForce: 0
+  canNotChangeHurt: 0
+  invincibleTime: 0
+  totalDieKeepTime: 2
+  dieKeepTime: 0
+  canHitFly: 0
+  isNonAttack: 0
   attackTime: 0
   totalAttack1Time: 0.5
   totalAttack2Time: 0.5
-  isNonAttack: 0
-  hptp: 0
-  isDie: 0
-  isRevive: 0
-  totalHp: 100
-  hp: 0
-  attack1Infos: []
-  attack2Infos: []
-  attackTriggers: []
   attackType: 0
   bulletPrefab: {fileID: 0}
   shootPos: []
-  dieKeepTime: 0
-  totalDieKeepTime: 2
-  attackTarget: {fileID: 0}
   shootTrack: 0
-  invincibleTime: 0
+  attack1Infos: []
+  attack2Infos: []
+  attackTriggers: []
+  targetTypes: 
   targetCharacter: {fileID: 0}
+  attackTarget: {fileID: 0}
   beTargetCharacter: []
-  searchTrigger: {fileID: 0}
-  targetTypes: 
-  canHitFly: 0
-  linked: 0
+  isSpirit: 0
+  isTran: 0
+  pc: {fileID: 0}
+  hptp: 0
   joint: {fileID: 0}
   rope: {fileID: 0}
-  hasHpUp: 0
   beLarger: 0
-  canHitFloat: 0
-  floatProbability: 0
-  attackToFloat: 0
-  floatTimes: 0
-  hasFloatTimes: 0
-  criticalChance: 0
-  criticalMultiplier: 0
   cookEffect: {fileID: 0}
   ropes: {fileID: 0}
   ropePrefab: {fileID: 616841038056457886, guid: db20d049c85578a4db3cef14a52b0f7b, type: 3}
@@ -18001,6 +17993,8 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   created: 
+  portals:
+  - {fileID: 1952022889}
 --- !u!1 &1729202001
 GameObject:
   m_ObjectHideFlags: 0
@@ -27908,6 +27902,11 @@ RectTransform:
   m_AnchoredPosition: {x: 0, y: 0}
   m_SizeDelta: {x: 100, y: 100}
   m_Pivot: {x: 0.5, y: 0.5}
+--- !u!1 &1952022889 stripped
+GameObject:
+  m_CorrespondingSourceObject: {fileID: 6204547102456506843, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
+  m_PrefabInstance: {fileID: 693438331479669851}
+  m_PrefabAsset: {fileID: 0}
 --- !u!1 &2045679344
 GameObject:
   m_ObjectHideFlags: 0
@@ -29193,7 +29192,7 @@ PrefabInstance:
       objectReference: {fileID: 0}
     - target: {fileID: 693438331589553446, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
       propertyPath: m_LocalPosition.y
-      value: 13.5
+      value: 11
       objectReference: {fileID: 0}
     - target: {fileID: 693438331589553446, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
       propertyPath: m_LocalPosition.z
@@ -29205,15 +29204,15 @@ PrefabInstance:
       objectReference: {fileID: 0}
     - target: {fileID: 693438331589553446, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
       propertyPath: m_LocalRotation.x
-      value: 0
+      value: -0
       objectReference: {fileID: 0}
     - target: {fileID: 693438331589553446, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
       propertyPath: m_LocalRotation.y
-      value: 0
+      value: -0
       objectReference: {fileID: 0}
     - target: {fileID: 693438331589553446, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
       propertyPath: m_LocalRotation.z
-      value: 0
+      value: -0
       objectReference: {fileID: 0}
     - target: {fileID: 693438331589553446, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
       propertyPath: m_LocalEulerAnglesHint.x
@@ -29231,18 +29230,18 @@ PrefabInstance:
       propertyPath: m_Name
       value: Portals
       objectReference: {fileID: 0}
-    - target: {fileID: 693438332605768588, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
-      propertyPath: m_LocalPosition.x
-      value: 0
-      objectReference: {fileID: 0}
-    - target: {fileID: 693438332605768588, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
-      propertyPath: m_LocalPosition.y
-      value: 0
+    - target: {fileID: 716715567097125074, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
+      propertyPath: m_IsActive
+      value: 1
       objectReference: {fileID: 0}
     - target: {fileID: 4519038915193933628, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
       propertyPath: m_LocalScale.x
       value: -1
       objectReference: {fileID: 0}
+    - target: {fileID: 6679047301605105475, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
+      propertyPath: m_IsActive
+      value: 1
+      objectReference: {fileID: 0}
     m_RemovedComponents: []
   m_SourcePrefab: {fileID: 100100000, guid: 7718014a1b52a1741a361cac211579a3, type: 3}
 --- !u!4 &1000490876135872409

+ 18 - 5
ActionTowerDefense/Assets/Scripts/EnemyCreater.cs

@@ -12,6 +12,7 @@ public class EnemyCreater : MonoBehaviour
     public List<SingleCreateEnemyConfig> cfgCreateEnemy;
     public List<bool> created;
     public Dictionary<int, List<Enemy>> enemyDic;
+    public List<GameObject> portals;    //ÄÜÕÙ»½¹ÖÎïµÄ´«ËÍÃÅ
 
     private void Awake()
     {
@@ -58,11 +59,23 @@ public class EnemyCreater : MonoBehaviour
             {
                 return;
             }
-            Vector3 pos = new Vector3(singleCreateEnemy.Position[0], 
-                singleCreateEnemy.Position[1] 
-                + Random.Range(-singleCreateEnemy.YRandomRange/2, singleCreateEnemy.YRandomRange / 2), 
-                singleCreateEnemy.Position[2]
-                + Random.Range(-singleCreateEnemy.ZRandomRange / 2, singleCreateEnemy.ZRandomRange / 2));
+            Vector3 pos;
+            if(singleCreateEnemy.PortalsID == -1)
+            {
+                pos = new Vector3(
+                    singleCreateEnemy.Position[0],
+                    singleCreateEnemy.Position[1]
+                        + Random.Range(-singleCreateEnemy.YRandomRange / 2, singleCreateEnemy.YRandomRange / 2),
+                    singleCreateEnemy.Position[2]
+                        + Random.Range(-singleCreateEnemy.ZRandomRange / 2, singleCreateEnemy.ZRandomRange / 2));
+            }
+            else
+            {
+                pos = portals[singleCreateEnemy.PortalsID].transform.position;
+                pos.y += Random.Range(-singleCreateEnemy.YRandomRange / 2, singleCreateEnemy.YRandomRange / 2);
+                pos.z += Random.Range(-singleCreateEnemy.ZRandomRange / 2, singleCreateEnemy.ZRandomRange / 2);
+            }
+
             CreateEnemy(singleCreateEnemy.EnemyID, pos, singleCreateEnemy.HPRatio, singleCreateEnemy.AttackRatio);
             await Task.Delay((int)(singleCreateEnemy.TimeInterval * 1000));
         }

+ 5 - 17
ActionTowerDefense/Assets/Scripts/PortalsController.cs

@@ -4,18 +4,17 @@ using UnityEngine;
 
 public class PortalsController : MonoBehaviour
 {
-    public PortalsController targetPortal;
-    public List<Rigidbody> rbs = new List<Rigidbody>();
-    public float TransmitCD;
+    public PortalsController targetPortal;              //传送目标
+    public List<Rigidbody> rbs = new List<Rigidbody>(); //通过当前传送门的单位
+    public float TransmitCD;                            //每个单位传送的CD
 
     private void OnTriggerEnter(Collider other)
     {
+        //传送主角、使魔、敌人
         BeSearchTrigger beSearchTrigger = other.GetComponent<BeSearchTrigger>();
         if (beSearchTrigger != null)
         {
             Rigidbody rb = beSearchTrigger.GetComponentInParent<Rigidbody>();
-            
-            
             if (!targetPortal.rbs.Exists(t => t == rb))
             {
                 if (!rbs.Exists(t => t == rb))
@@ -24,7 +23,6 @@ public class PortalsController : MonoBehaviour
                         (transform.parent.localScale.x < 0 && rb.velocity.x < 0))
                     {
                         rbs.Add(rb);
-
                         Vector3 targetPos = targetPortal.transform.position;
                         targetPos.y += rb.transform.position.y - transform.position.y;
                         rb.transform.position = targetPos;
@@ -33,35 +31,25 @@ public class PortalsController : MonoBehaviour
                         moveCharacter.transmitTime = TransmitCD;
                         moveCharacter.haveTransmit = true;
                     }
-                    
                 }
             }
-
             return;
         }
+        //传送子弹
         Bullet bullet = other.GetComponent<Bullet>();
         if(bullet != null)
         {
             Rigidbody rb = bullet.GetComponentInParent<Rigidbody>();
-
             if (!targetPortal.rbs.Exists(t => t == rb))
             {
                 if (!rbs.Exists(t => t == rb))
                 {
                     rbs.Add(rb);
-
                     Vector3 targetPos = targetPortal.transform.position;
                     targetPos.y += rb.transform.position.y - transform.position.y;
                     rb.transform.position = targetPos;
                 }
             }
         }
-
-    }
-    
-    public void AddPortal(Rigidbody rb)
-    {
-
     }
-    
 }

+ 16 - 1
ActionTowerDefense/GenerateDatas/json/cfgcreateenemy.json

@@ -10,8 +10,9 @@
       0,
       0
     ],
+    "PortalsID": 0,
     "YRandomRange": 0,
-    "ZRandomRange": 4,
+    "ZRandomRange": 0,
     "AttackRatio": 1,
     "HPRatio": 1
   },
@@ -26,6 +27,7 @@
       7,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 2,
     "ZRandomRange": 4,
     "AttackRatio": 1.2,
@@ -42,6 +44,7 @@
       0,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 0,
     "ZRandomRange": 4,
     "AttackRatio": 1.4,
@@ -58,6 +61,7 @@
       0,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 0,
     "ZRandomRange": 4,
     "AttackRatio": 1.6,
@@ -74,6 +78,7 @@
       3,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 4,
     "ZRandomRange": 4,
     "AttackRatio": 1.8,
@@ -90,6 +95,7 @@
       3,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 4,
     "ZRandomRange": 4,
     "AttackRatio": 2,
@@ -106,6 +112,7 @@
       3,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 3,
     "ZRandomRange": 4,
     "AttackRatio": 2.2,
@@ -122,6 +129,7 @@
       0,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 0,
     "ZRandomRange": 4,
     "AttackRatio": 2.4,
@@ -138,6 +146,7 @@
       0,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 0,
     "ZRandomRange": 4,
     "AttackRatio": 2.6,
@@ -154,6 +163,7 @@
       3,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 4,
     "ZRandomRange": 4,
     "AttackRatio": 2.8,
@@ -170,6 +180,7 @@
       0,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 0,
     "ZRandomRange": 0,
     "AttackRatio": 3,
@@ -186,6 +197,7 @@
       0,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 0,
     "ZRandomRange": 0,
     "AttackRatio": 3.2,
@@ -202,6 +214,7 @@
       3,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 4,
     "ZRandomRange": 0,
     "AttackRatio": 3.4,
@@ -218,6 +231,7 @@
       3,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 0,
     "ZRandomRange": 0,
     "AttackRatio": 3.6,
@@ -234,6 +248,7 @@
       3,
       0
     ],
+    "PortalsID": -1,
     "YRandomRange": 0,
     "ZRandomRange": 0,
     "AttackRatio": 3.8,

+ 11 - 0
ActionTowerDefense/GenerateDatas/json/cfgenemy.json

@@ -75,5 +75,16 @@
     "Attack2": [
       0
     ]
+  },
+  {
+    "ID": 1001,
+    "EnemyPrefab": "Prefab/Boss/Boss_YuMenGuan",
+    "HP": 10000,
+    "Attack1": [
+      0
+    ],
+    "Attack2": [
+      0
+    ]
   }
 ]

+ 12 - 12
ActionTowerDefense/Luban/.cache.meta

@@ -1,12 +1,12 @@
-C:/ActionTowerDefense/ActionTowerDefense/Assets/Gen/CfgCreateEnemy.cs,3A9B470F9A1FA351330EA275C82C399,1404,1711769724306
-C:/ActionTowerDefense/ActionTowerDefense/Assets/Gen/CfgEnemy.cs,FDE1CE1B09C67F343EE84B2F88F27A6,1820,1711769724301
-C:/ActionTowerDefense/ActionTowerDefense/Assets/Gen/SingleCreateEnemyConfig.cs,31C446D2618B9A9980E838F358415228,4715,1722394832979
-C:/ActionTowerDefense/ActionTowerDefense/Assets/Gen/SingleEnemyConfig.cs,D5F643F55C5C4765F3F8EFC19A64C96,3343,1722394832979
-C:/ActionTowerDefense/ActionTowerDefense/Assets/Gen/Tables.cs,912B477615DA4F7C6B7D4A0EE96B27A,1296,1711769724292
-C:/ActionTowerDefense/ActionTowerDefense/GenerateDatas/json/cfgcreateenemy.json,D2D8758453F4D3C0826460D6E478E4D,3783,1723720405308
-C:/ActionTowerDefense/ActionTowerDefense/GenerateDatas/json/cfgenemy.json,AA9AD8556FD752B4737EC1A91611A5F,1113,1721971865197
-C:/ActionTowerDefense/ActionTowerDefense/Luban/Config/Datas/__beans__.xlsx,98987DA7288FEE34BCD08EA883D425E,9603,1711190247467
-C:/ActionTowerDefense/ActionTowerDefense/Luban/Config/Datas/__enums__.xlsx,647733322F7261DFA483C2DBE2D1F9A4,10293,1711190247467
-C:/ActionTowerDefense/ActionTowerDefense/Luban/Config/Datas/__tables__.xlsx,D1BC5823EBCE916872405D2DCDC896D,10232,1711372939546
-C:/ActionTowerDefense/ActionTowerDefense/Luban/Config/Datas/出怪表.xlsx,7083F4ED3073EC9F574CAC751E87AA68,10538,1723720396792
-C:/ActionTowerDefense/ActionTowerDefense/Luban/Config/Datas/怪物表.xlsx,FC90192FC35735B3B251C08EA2DC53C,10305,1721971865198
+D:/ActionTowerDefense/ActionTowerDefense/Assets/Gen/CfgCreateEnemy.cs,3A9B470F9A1FA351330EA275C82C399,1404,1720757251245
+D:/ActionTowerDefense/ActionTowerDefense/Assets/Gen/CfgEnemy.cs,FDE1CE1B09C67F343EE84B2F88F27A6,1820,1720757251245
+D:/ActionTowerDefense/ActionTowerDefense/Assets/Gen/SingleCreateEnemyConfig.cs,94F69187DC4291E98A2B8124104171F1,5035,1724204421056
+D:/ActionTowerDefense/ActionTowerDefense/Assets/Gen/SingleEnemyConfig.cs,D5F643F55C5C4765F3F8EFC19A64C96,3343,1721976818442
+D:/ActionTowerDefense/ActionTowerDefense/Assets/Gen/Tables.cs,912B477615DA4F7C6B7D4A0EE96B27A,1296,1720757251246
+D:/ActionTowerDefense/ActionTowerDefense/GenerateDatas/json/cfgcreateenemy.json,87FAC7BE8EA95857471CF2CD2A92B40,4112,1724210023095
+D:/ActionTowerDefense/ActionTowerDefense/GenerateDatas/json/cfgenemy.json,23C70C49159E182C3605CEDC07D7582,1278,1724204421056
+D:/ActionTowerDefense/ActionTowerDefense/Luban/Config/Datas/__beans__.xlsx,98987DA7288FEE34BCD08EA883D425E,9603,1719819418545
+D:/ActionTowerDefense/ActionTowerDefense/Luban/Config/Datas/__enums__.xlsx,647733322F7261DFA483C2DBE2D1F9A4,10293,1719819418545
+D:/ActionTowerDefense/ActionTowerDefense/Luban/Config/Datas/__tables__.xlsx,D1BC5823EBCE916872405D2DCDC896D,10232,1719819418546
+D:/ActionTowerDefense/ActionTowerDefense/Luban/Config/Datas/出怪表.xlsx,4310EC836E3036A9A1F77CDDDEA673DC,10701,1724210020368
+D:/ActionTowerDefense/ActionTowerDefense/Luban/Config/Datas/怪物表.xlsx,6659809E60F944C62D234EFB397FFBC,9866,1724145057067

BIN
ActionTowerDefense/Luban/Config/Datas/出怪表.xlsx