Переглянути джерело

角色可以召唤功能不全的刺客英灵

LAPTOP-OM1V99U2\永远de小亡灵 1 рік тому
батько
коміт
4fd56d1b6d

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

@@ -843,11 +843,13 @@ MonoBehaviour:
   - {fileID: 5440846222648032759, guid: 05825e721b2832f478f66e78daed901f, type: 3}
   - {fileID: 2437299196472462361, guid: a429663f5ce3055459229a7eddc06c58, type: 3}
   - {fileID: 8639832132491289359, guid: 44821b04b647bf84eb8b3ff69cf72c27, type: 3}
+  - {fileID: 2437299196472462361, guid: 097d9d3ad9d15304f84fa472858a40aa, type: 3}
   demonicSummonPos:
   - {x: -1, y: 0, z: 0}
   - {x: -1, y: 0, z: 0}
   - {x: -1, y: 0, z: 0}
   - {x: -1, y: 0, z: 0}
+  - {x: -1, y: 0, z: 0}
   demonicId: 
   uiMp: {fileID: 8465211090008398057}
   playerRope: {fileID: 112529840073562573, guid: 2f24cd9614ae27e4e9525c04d7c7244f, type: 3}

+ 1 - 1
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -245,7 +245,7 @@ public class PlayerController : MoveCharacter
         //    return;
         //}
         demonicDic = new Dictionary<int, List<Demonic>>();
-        demonicId = new List<int>() { 0, 0, 0, 0 };
+        demonicId = new List<int>() { 0, 0, 0, 0, 0 };
         Init();
     }
 

+ 5 - 0
ActionTowerDefense/Assets/Scripts/Spirits/Spirits.cs

@@ -47,5 +47,10 @@ public class Spirits : MonoBehaviour
             currentSpirit = SpiritType.Invisible;
             SummonSpirit(currentSpirit);
         }
+        if (Input.GetKeyDown(KeyCode.I))
+        {
+            currentSpirit = SpiritType.Invisible;
+            SummonSpirit(currentSpirit);
+        }
     }
 }