Преглед изворни кода

敌方英灵掉魂为10;可自由调控变身时是否可召兵

SZAND\msx_2 пре 1 година
родитељ
комит
e7dd359f9d

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

@@ -235,7 +235,6 @@ MonoBehaviour:
   rb: {fileID: 2437299196472462355}
   bodyTrans: {fileID: 2730232521377132808}
   beSearchTrigger: {fileID: 1317309795988277421}
-  attackTrigger: {fileID: 0}
   uiHp: {fileID: 6433555643392153575}
   state: 0
   attackTime: 0
@@ -282,6 +281,8 @@ MonoBehaviour:
   canHitFloat: 0
   floatProbability: 0
   attackToFloat: 0
+  floatTimes: 0
+  hasFloatTimes: 0
   isSoulUnstable: 0
   soulUnstableTime: 0
   criticalChance: 0
@@ -340,6 +341,7 @@ MonoBehaviour:
   canNotChangeHurt: 0
   soulPrefab: {fileID: 1723151111827507807, guid: e2b65aa482f2f1447a4074208d72b778, type: 3}
   soulStartSpeed: 1
+  easyToGetHit: 0.2
   id: 0
   jumpSpeed: 9
   searchState: 0
@@ -355,7 +357,7 @@ MonoBehaviour:
   maxMoveSpeed: 15
   minMoveSpeed: 15
   runSpeed: 0
-  dropSoul: 3
+  dropSoul: 10
   dropSoulAngle: 90
   noOnSearchState: 0
   isFindingPlayer: 0
@@ -703,6 +705,8 @@ MonoBehaviour:
   offsetY: 1
   hitRate: 1
   Miss: {fileID: 6380148097413123628, guid: b0832b9907489bd44a617b760ccfd8c8, type: 3}
+  criticalRandom: 0
+  isRandom: 0
 --- !u!1 &7669620205589286043
 GameObject:
   m_ObjectHideFlags: 0

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

@@ -101,6 +101,8 @@ MonoBehaviour:
   offsetY: 1
   hitRate: 1
   Miss: {fileID: 6380148097413123628, guid: b0832b9907489bd44a617b760ccfd8c8, type: 3}
+  criticalRandom: 0
+  isRandom: 0
 --- !u!1 &2024103903726213949
 GameObject:
   m_ObjectHideFlags: 0
@@ -825,7 +827,6 @@ MonoBehaviour:
   rb: {fileID: 5440846222648032765}
   bodyTrans: {fileID: 6459001683917408033}
   beSearchTrigger: {fileID: 4259433079752244006}
-  attackTrigger: {fileID: 0}
   uiHp: {fileID: 5991788786426416620}
   state: 0
   attackTime: 0
@@ -872,6 +873,8 @@ MonoBehaviour:
   canHitFloat: 0
   floatProbability: 0
   attackToFloat: 0
+  floatTimes: 0
+  hasFloatTimes: 0
   isSoulUnstable: 0
   soulUnstableTime: 0
   criticalChance: 0
@@ -932,6 +935,7 @@ MonoBehaviour:
   canNotChangeHurt: 0
   soulPrefab: {fileID: 1723151111827507807, guid: e2b65aa482f2f1447a4074208d72b778, type: 3}
   soulStartSpeed: 1
+  easyToGetHit: 0.2
   id: 0
   jumpSpeed: 9
   searchState: 0
@@ -947,7 +951,7 @@ MonoBehaviour:
   maxMoveSpeed: 2
   minMoveSpeed: 1
   runSpeed: 4
-  dropSoul: 3
+  dropSoul: 10
   dropSoulAngle: 90
   noOnSearchState: 0
   isFindingPlayer: 0

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

@@ -1020,7 +1020,6 @@ MonoBehaviour:
   rb: {fileID: 8639832132491289349}
   bodyTrans: {fileID: 5769591908339262981}
   beSearchTrigger: {fileID: 316813748882225178}
-  attackTrigger: {fileID: 0}
   uiHp: {fileID: 3586716274361854270}
   state: 0
   attackTime: 0
@@ -1143,6 +1142,7 @@ MonoBehaviour:
   canNotChangeHurt: 0
   soulPrefab: {fileID: 1723151111827507807, guid: e2b65aa482f2f1447a4074208d72b778, type: 3}
   soulStartSpeed: 1
+  easyToGetHit: 0.2
   id: 0
   jumpSpeed: 10
   searchState: 0
@@ -1158,7 +1158,7 @@ MonoBehaviour:
   maxMoveSpeed: 12
   minMoveSpeed: 8
   runSpeed: 0
-  dropSoul: 3
+  dropSoul: 10
   dropSoulAngle: 90
   noOnSearchState: 0
   isFindingPlayer: 0

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

@@ -238,7 +238,6 @@ MonoBehaviour:
   rb: {fileID: 2437299196472462355}
   bodyTrans: {fileID: 2730232521377132808}
   beSearchTrigger: {fileID: 1317309795988277421}
-  attackTrigger: {fileID: 0}
   uiHp: {fileID: 6433555643392153575}
   state: 0
   attackTime: 0
@@ -284,6 +283,8 @@ MonoBehaviour:
   canHitFloat: 0
   floatProbability: 0
   attackToFloat: 0
+  floatTimes: 0
+  hasFloatTimes: 0
   isSoulUnstable: 0
   soulUnstableTime: 0
   criticalChance: 0
@@ -340,6 +341,7 @@ MonoBehaviour:
   canNotChangeHurt: 0
   soulPrefab: {fileID: 1723151111827507807, guid: e2b65aa482f2f1447a4074208d72b778, type: 3}
   soulStartSpeed: 1
+  easyToGetHit: 0.2
   id: 0
   jumpSpeed: 10
   searchState: 0
@@ -355,7 +357,7 @@ MonoBehaviour:
   maxMoveSpeed: 12
   minMoveSpeed: 8
   runSpeed: 0
-  dropSoul: 3
+  dropSoul: 10
   dropSoulAngle: 90
   noOnSearchState: 1
   isFindingPlayer: 0
@@ -705,6 +707,8 @@ MonoBehaviour:
   offsetY: 1
   hitRate: 1
   Miss: {fileID: 6380148097413123628, guid: b0832b9907489bd44a617b760ccfd8c8, type: 3}
+  criticalRandom: 0
+  isRandom: 0
 --- !u!1 &7341864646967346330
 GameObject:
   m_ObjectHideFlags: 0

+ 1 - 1
ActionTowerDefense/Assets/Resources/Prefab/Enemy_Sword.prefab

@@ -360,7 +360,7 @@ MonoBehaviour:
   maxMoveSpeed: 6
   minMoveSpeed: 5
   runSpeed: 0
-  dropSoul: 3
+  dropSoul: 2
   dropSoulAngle: 90
   noOnSearchState: 0
   isFindingPlayer: 0

+ 14 - 0
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -526,6 +526,8 @@ public class PlayerController : MoveCharacter
         //animalAni.SetInteger("state", (int)PlayerState.Rise);
     }
 
+    public bool canTranSummon = true;
+
     public bool CheckSummon()
     {
         if (cacheSummonTime > 0)
@@ -535,16 +537,28 @@ public class PlayerController : MoveCharacter
         }
         if (btnWestPress)
         {
+            if (isTransfiguration && !canTranSummon)
+            {
+                return false;
+            }
             Summon(0);
             return true;
         }
         if (btnSouthPress)
         {
+            if (isTransfiguration && !canTranSummon)
+            {
+                return false;
+            }
             Summon(1);
             return true;
         }
         if (btnEastPress)
         {
+            if (isTransfiguration && !canTranSummon)
+            {
+                return false;
+            }
             Summon(2);
             return true;
         }