SZAND\msx_2 1 year ago
parent
commit
b5fb4a7d0c

+ 4 - 2
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -1252,7 +1252,7 @@ public class PlayerController : MoveCharacter
         SearchTarget();
         attackTarget = targetCharacter;
 
-        if (floatState == 0)
+        if (isMpRepel && floatState == 0)
         {
             if (mp < totalMp)
             {
@@ -1263,7 +1263,7 @@ public class PlayerController : MoveCharacter
                 mp = totalMp;
             }
         }
-        else
+        if (floatState != 0)
         {
             if (mp > 0)
             {
@@ -1283,6 +1283,8 @@ public class PlayerController : MoveCharacter
         uiMp.Show(mp, totalMp);
     }
 
+    public bool isMpRepel = true;
+
     public override void ChangeState(CharacterState newState)
     {
         if (state == newState)

+ 10 - 0
ActionTowerDefense/Assets/Scripts/Spirits/CookBottle.cs

@@ -0,0 +1,10 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class CookBottle : MonoBehaviour
+{
+    public GameObject paprika;      //À±½··Û
+
+
+}

+ 11 - 0
ActionTowerDefense/Assets/Scripts/Spirits/CookBottle.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: bce42e0c19b0ad64ea989f7c2f1e1b44
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: