Sfoglia il codice sorgente

英灵死亡后不产生尸体

SZAND\msx_2 1 anno fa
parent
commit
7ca56defc7

+ 2 - 4
ActionTowerDefense/Assets/Resources/Prefab/ESpirits_Assassin.prefab

@@ -224,6 +224,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 0
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols:
   - {fileID: 6526817785665782971}
   - {fileID: 8769150919382874379}
@@ -342,6 +343,7 @@ MonoBehaviour:
   soulPrefab: {fileID: 1723151111827507807, guid: e2b65aa482f2f1447a4074208d72b778, type: 3}
   soulStartSpeed: 1
   easyToGetHit: 0.2
+  canNotBeHit: 0
   id: 0
   jumpSpeed: 9
   searchState: 0
@@ -701,12 +703,8 @@ MonoBehaviour:
   force: {x: 0, y: 0, z: 0}
   changeHurt: 0
   repelValue: 0
-  spiritsAttackEffect: {fileID: 7473170563405908938, guid: 8ad3c225050205945b10657aa300afd6, type: 3}
   offsetY: 1
   hitRate: 1
-  Miss: {fileID: 6380148097413123628, guid: b0832b9907489bd44a617b760ccfd8c8, type: 3}
-  criticalRandom: 0
-  isRandom: 0
 --- !u!1 &7669620205589286043
 GameObject:
   m_ObjectHideFlags: 0

+ 2 - 4
ActionTowerDefense/Assets/Resources/Prefab/ESpirits_Cook.prefab

@@ -97,12 +97,8 @@ MonoBehaviour:
   force: {x: 0, y: 0, z: 0}
   changeHurt: 0
   repelValue: 0
-  spiritsAttackEffect: {fileID: 0}
   offsetY: 1
   hitRate: 1
-  Miss: {fileID: 6380148097413123628, guid: b0832b9907489bd44a617b760ccfd8c8, type: 3}
-  criticalRandom: 0
-  isRandom: 0
 --- !u!1 &2024103903726213949
 GameObject:
   m_ObjectHideFlags: 0
@@ -816,6 +812,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 0
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols:
   - {fileID: 4480734502875862885}
   - {fileID: 2460330936527559963}
@@ -936,6 +933,7 @@ MonoBehaviour:
   soulPrefab: {fileID: 1723151111827507807, guid: e2b65aa482f2f1447a4074208d72b778, type: 3}
   soulStartSpeed: 1
   easyToGetHit: 0.2
+  canNotBeHit: 0
   id: 0
   jumpSpeed: 9
   searchState: 0

+ 2 - 0
ActionTowerDefense/Assets/Resources/Prefab/ESpirits_Float.prefab

@@ -1009,6 +1009,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 0
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols:
   - {fileID: 5388987656270167698}
   - {fileID: 1190225091429982147}
@@ -1143,6 +1144,7 @@ MonoBehaviour:
   soulPrefab: {fileID: 1723151111827507807, guid: e2b65aa482f2f1447a4074208d72b778, type: 3}
   soulStartSpeed: 1
   easyToGetHit: 0.2
+  canNotBeHit: 0
   id: 0
   jumpSpeed: 10
   searchState: 0

+ 2 - 4
ActionTowerDefense/Assets/Resources/Prefab/ESpirits_Invisible.prefab

@@ -227,6 +227,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 0
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols:
   - {fileID: 6526817785665782971}
   - {fileID: 8769150919382874379}
@@ -342,6 +343,7 @@ MonoBehaviour:
   soulPrefab: {fileID: 1723151111827507807, guid: e2b65aa482f2f1447a4074208d72b778, type: 3}
   soulStartSpeed: 1
   easyToGetHit: 0.2
+  canNotBeHit: 0
   id: 0
   jumpSpeed: 10
   searchState: 0
@@ -703,12 +705,8 @@ MonoBehaviour:
   force: {x: 0, y: 0, z: 0}
   changeHurt: 0
   repelValue: 0
-  spiritsAttackEffect: {fileID: 0}
   offsetY: 1
   hitRate: 1
-  Miss: {fileID: 6380148097413123628, guid: b0832b9907489bd44a617b760ccfd8c8, type: 3}
-  criticalRandom: 0
-  isRandom: 0
 --- !u!1 &7341864646967346330
 GameObject:
   m_ObjectHideFlags: 0

+ 9 - 3
ActionTowerDefense/Assets/Resources/Prefab/MySpirit/Spirits_Assassin.prefab

@@ -212,6 +212,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 0
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols:
   - {fileID: 6526817785665782971}
   - {fileID: 8769150919382874379}
@@ -223,7 +224,6 @@ MonoBehaviour:
   rb: {fileID: 2437299196472462355}
   bodyTrans: {fileID: 2730232521377132808}
   beSearchTrigger: {fileID: 1317309795988277421}
-  attackTrigger: {fileID: 0}
   uiHp: {fileID: 6433555643392153575}
   state: 0
   attackTime: 0
@@ -270,6 +270,8 @@ MonoBehaviour:
   canHitFloat: 0
   floatProbability: 0
   attackToFloat: 0
+  floatTimes: 0
+  hasFloatTimes: 0
   isSoulUnstable: 0
   soulUnstableTime: 0
   criticalChance: 0
@@ -327,6 +329,9 @@ MonoBehaviour:
   canNotChangeHurt: 0
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
+  easyToGetHit: 0.2
+  canNotBeHit: 0
+  player: {fileID: 0}
   id: 0
   costMp: 1
   totalSummonTime: 0.5
@@ -343,6 +348,9 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 0}
   isBack: 0
+  attributeUpEffect: {fileID: 0}
+  hasUp: 0
+  isFirst: 1
 --- !u!54 &2437299196472462355
 Rigidbody:
   m_ObjectHideFlags: 0
@@ -682,10 +690,8 @@ MonoBehaviour:
   force: {x: 0, y: 0, z: 0}
   changeHurt: 0
   repelValue: 0
-  spiritsAttackEffect: {fileID: 7473170563405908938, guid: 8ad3c225050205945b10657aa300afd6, type: 3}
   offsetY: 1
   hitRate: 1
-  Miss: {fileID: 0}
 --- !u!1 &7669620205589286043
 GameObject:
   m_ObjectHideFlags: 0

+ 9 - 3
ActionTowerDefense/Assets/Resources/Prefab/MySpirit/Spirits_Cook.prefab

@@ -204,10 +204,8 @@ MonoBehaviour:
   force: {x: 0, y: 0, z: 0}
   changeHurt: 0
   repelValue: 0
-  spiritsAttackEffect: {fileID: 0}
   offsetY: 1
   hitRate: 1
-  Miss: {fileID: 0}
 --- !u!1 &2460330936527559963
 GameObject:
   m_ObjectHideFlags: 0
@@ -799,6 +797,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 0
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols: []
   cookNum: 10
   mecanim: {fileID: 7573527827155227431}
@@ -808,7 +807,6 @@ MonoBehaviour:
   rb: {fileID: 5440846222648032765}
   bodyTrans: {fileID: 6459001683917408033}
   beSearchTrigger: {fileID: 4259433079752244006}
-  attackTrigger: {fileID: 0}
   uiHp: {fileID: 3402650366513594425}
   state: 0
   attackTime: 0
@@ -845,6 +843,8 @@ MonoBehaviour:
   canHitFloat: 0
   floatProbability: 0
   attackToFloat: 0
+  floatTimes: 0
+  hasFloatTimes: 0
   isSoulUnstable: 0
   soulUnstableTime: 0
   criticalChance: 0
@@ -904,6 +904,9 @@ MonoBehaviour:
   canNotChangeHurt: 0
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
+  easyToGetHit: 0.2
+  canNotBeHit: 0
+  player: {fileID: 0}
   id: 0
   costMp: 1
   totalSummonTime: 0.5
@@ -920,6 +923,9 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 0}
   isBack: 0
+  attributeUpEffect: {fileID: 0}
+  hasUp: 0
+  isFirst: 1
 --- !u!54 &5440846222648032765
 Rigidbody:
   m_ObjectHideFlags: 0

+ 7 - 0
ActionTowerDefense/Assets/Resources/Prefab/MySpirit/Spirits_Float.prefab

@@ -989,6 +989,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 0
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols:
   - {fileID: 5388987656270167698}
   - {fileID: 1190225091429982147}
@@ -1119,6 +1120,9 @@ MonoBehaviour:
   canNotChangeHurt: 0
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
+  easyToGetHit: 0.2
+  canNotBeHit: 0
+  player: {fileID: 0}
   id: 0
   costMp: 1
   totalSummonTime: 0.5
@@ -1135,6 +1139,9 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 0}
   isBack: 0
+  attributeUpEffect: {fileID: 0}
+  hasUp: 0
+  isFirst: 1
 --- !u!54 &8639832132491289349
 Rigidbody:
   m_ObjectHideFlags: 0

+ 4 - 0
ActionTowerDefense/Assets/Resources/Prefab/MySpirit/Spirits_Invisible.prefab

@@ -221,6 +221,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 1
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols:
   - {fileID: 6526817785665782971}
   - {fileID: 8769150919382874379}
@@ -355,6 +356,9 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 0}
   isBack: 0
+  attributeUpEffect: {fileID: 0}
+  hasUp: 0
+  isFirst: 1
 --- !u!54 &2472120008162019348
 Rigidbody:
   m_ObjectHideFlags: 0

+ 5 - 4
ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Assassin.prefab

@@ -217,6 +217,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 1
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols:
   - {fileID: 6526817785665782971}
   - {fileID: 8769150919382874379}
@@ -334,6 +335,7 @@ MonoBehaviour:
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
   easyToGetHit: 0.2
+  canNotBeHit: 0
   player: {fileID: 0}
   id: 0
   costMp: 1
@@ -351,6 +353,9 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 0}
   isBack: 0
+  attributeUpEffect: {fileID: 0}
+  hasUp: 0
+  isFirst: 1
 --- !u!1 &2437299196663985757
 GameObject:
   m_ObjectHideFlags: 0
@@ -791,12 +796,8 @@ MonoBehaviour:
   force: {x: 0, y: 0, z: 0}
   changeHurt: 0
   repelValue: 0
-  spiritsAttackEffect: {fileID: 7473170563405908938, guid: 8ad3c225050205945b10657aa300afd6, type: 3}
   offsetY: 1
   hitRate: 1
-  Miss: {fileID: 0}
-  criticalRandom: 0
-  isRandom: 0
 --- !u!1 &6718313986988356132
 GameObject:
   m_ObjectHideFlags: 0

+ 2 - 0
ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Cook.prefab

@@ -849,6 +849,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 1
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols:
   - {fileID: 4480734502875862885}
   - {fileID: 2460330936527559963}
@@ -966,6 +967,7 @@ MonoBehaviour:
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
   easyToGetHit: 0.2
+  canNotBeHit: 0
   player: {fileID: 0}
   id: 0
   costMp: 1

+ 7 - 0
ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Float.prefab

@@ -1067,6 +1067,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 1
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols:
   - {fileID: 5388987656270167698}
   - {fileID: 1190225091429982147}
@@ -1197,6 +1198,9 @@ MonoBehaviour:
   canNotChangeHurt: 0
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
+  easyToGetHit: 0.2
+  canNotBeHit: 0
+  player: {fileID: 0}
   id: 0
   costMp: 1
   totalSummonTime: 0.5
@@ -1213,3 +1217,6 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 2509289168932687770}
   isBack: 0
+  attributeUpEffect: {fileID: 0}
+  hasUp: 0
+  isFirst: 1

+ 4 - 2
ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Invisible.prefab

@@ -211,7 +211,6 @@ MonoBehaviour:
   player: {fileID: 0}
   canInvincible: 0
   maxFlyHeight: 10
-  invisibleEffect: {fileID: 417478504669294145, guid: 716b02349f9519b4fbc01709ad3ada23, type: 3}
 --- !u!114 &2437299196472462353
 MonoBehaviour:
   m_ObjectHideFlags: 0
@@ -226,6 +225,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 1
   pc: {fileID: 0}
+  isSpirit: 1
   HitCols:
   - {fileID: 6526817785665782971}
   - {fileID: 8769150919382874379}
@@ -342,7 +342,7 @@ MonoBehaviour:
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
   easyToGetHit: 0.2
-  isInvincible: 0
+  canNotBeHit: 0
   player: {fileID: 0}
   id: 0
   costMp: 1
@@ -361,6 +361,8 @@ MonoBehaviour:
   soulCollector: {fileID: 0}
   isBack: 0
   attributeUpEffect: {fileID: 0}
+  hasUp: 0
+  isFirst: 1
 --- !u!1 &2437299196663985757
 GameObject:
   m_ObjectHideFlags: 0

+ 1 - 0
ActionTowerDefense/Assets/Scripts/Character.cs

@@ -50,6 +50,7 @@ public class Character : MonoBehaviour
 {
     public bool isTran;
     public PlayerController pc;
+    public bool isSpirit;
 
     public GameObject[] HitCols;
 

+ 4 - 1
ActionTowerDefense/Assets/Scripts/Demonic.cs

@@ -420,7 +420,10 @@ public class Demonic : MoveCharacter
                 if (dieKeepTime <= 0)
                 {
                     print("Die:" + gameObject.name);
-                    player.corpses += 1;
+                    if (!isSpirit)
+                    {
+                        player.corpses += 1;
+                    }
                     player.ShowCorpse();
                     gameObject.SetActive(false);
                     break;