|
|
@@ -32,6 +32,15 @@ public class FloatEffect : MonoBehaviour
|
|
|
else if(isEnemy && other.gameObject.layer == 7)
|
|
|
{
|
|
|
Demonic dem = other.GetComponentInParent<Demonic>();
|
|
|
+ if (dem.isTran)
|
|
|
+ {
|
|
|
+ if (dem.pc == null)
|
|
|
+ {
|
|
|
+ dem.pc = dem.GetComponentInParent<PlayerController>();
|
|
|
+ }
|
|
|
+ dem.pc.lostMp = 0;
|
|
|
+ dem.soulCollector.enabled = false;
|
|
|
+ }
|
|
|
dem.FloatStateOn();
|
|
|
FloatData.demIsFloating.Add(dem);
|
|
|
}
|