瀏覽代碼

修改bug

DESKTOP-BGJIU14\ck 6 天之前
父節點
當前提交
47bbd0f10d

+ 13 - 1
Assets/Scripts/GameLogic/Combat/Skill/S9002.cs

@@ -18,6 +18,7 @@ namespace GameLogic.Combat.Skill
 
         protected TimeLineEventLogicGroupBasic _timeLineEventLogicGroupBasic;
 
+        private BarrierEntityMono barrierEntityMono;
         protected override void ProInitSkill()
         {
             // AddTriggerCallBack("sk1_fashe", Sk1_FaSheProDefaultTimeLineTrigger);
@@ -37,7 +38,7 @@ namespace GameLogic.Combat.Skill
             // count = 0;
             SpecialDotInfo specialDotInfo = CombatHeroEntity.GetSpecialDotInfo("sk2_trigger");
             // specialDotInfo
-            BarrierEntityMono barrierEntityMono =
+             barrierEntityMono =
                 specialDotInfo.targetTran.gameObject.GetOrAddComponent<BarrierEntityMono>();
             barrierEntityMono.Barrier = this;
             isTrgger = true;
@@ -102,5 +103,16 @@ namespace GameLogic.Combat.Skill
 
             return 0;
         }
+
+        protected override void ProDispose()
+        {
+            if (barrierEntityMono != null)
+            {
+                barrierEntityMono.Barrier = null;
+            }
+
+            isTrgger = false;
+            barrierEntityMono = null;
+        }
     }
 }

+ 1 - 1
Assets/Scripts/GameLogic/Paritcle/ParitcleLogic/FxParabolaBulletLogic.cs

@@ -235,7 +235,7 @@ namespace Common.Combat.FxAILogic
                 }
 
                 BarrierEntityMono barrierEntityMono = collision.gameObject.GetComponent<BarrierEntityMono>();
-                if (barrierEntityMono != null)
+                if (barrierEntityMono != null&&barrierEntityMono.Barrier!=null)
                 {
                     TriggerBarrier(collision, barrierEntityMono);
                 }

文件差異過大導致無法顯示
+ 0 - 0
Assets/StreamingAssets/assetConfig.txt


部分文件因文件數量過多而無法顯示