소스 검색

修复变身耗蓝bug

SZAND\msx_2 1 년 전
부모
커밋
09d2cca8d7
1개의 변경된 파일0개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 7
      ActionTowerDefense/Assets/Scripts/PlayerController.cs

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

@@ -1505,15 +1505,8 @@ public class PlayerController : MoveCharacter
             return;
         }
         GameObject prefab = changePrefabs[id];
-        if (!CheckCanSummon(id))
-        {
-            return;
-        }
         ChangeState(CharacterState.Transfiguration);
         summonTime = prefab.GetComponent<Demonic>().totalSummonTime;
-        float costMp = prefab.GetComponent<Demonic>().costMp;
-        mp -= costMp;
-        uiMp.Show(mp, totalMp);
         bodyTrans.gameObject.SetActive(false);
         foot.trigGroundList.Clear();
         spiritObj = PoolManager.Instantiate(prefab);