|
@@ -26,14 +26,14 @@ public class Trans_Invisible : MonoBehaviour
|
|
|
public float time;
|
|
public float time;
|
|
|
[HideInInspector]
|
|
[HideInInspector]
|
|
|
public float normalSpeed;
|
|
public float normalSpeed;
|
|
|
- public float kMp;
|
|
|
|
|
|
|
+ public float KMp;
|
|
|
public float magnification;
|
|
public float magnification;
|
|
|
public float firstScale;
|
|
public float firstScale;
|
|
|
public float addScaleMagnification;
|
|
public float addScaleMagnification;
|
|
|
public float boomTime;
|
|
public float boomTime;
|
|
|
public float addBoomTime;
|
|
public float addBoomTime;
|
|
|
public float maxBoomTime;
|
|
public float maxBoomTime;
|
|
|
-
|
|
|
|
|
|
|
+ public float soulMagnification;
|
|
|
|
|
|
|
|
private void Start()
|
|
private void Start()
|
|
|
{
|
|
{
|
|
@@ -68,9 +68,9 @@ public class Trans_Invisible : MonoBehaviour
|
|
|
soulFollowEffect.ShowSouls(soulCollector.soulNumbers);
|
|
soulFollowEffect.ShowSouls(soulCollector.soulNumbers);
|
|
|
AttackJ();
|
|
AttackJ();
|
|
|
}
|
|
}
|
|
|
- else if(playerController.mp>= soulPrefab.GetComponent<Soul>().addMp)
|
|
|
|
|
|
|
+ else if(playerController.mp>= soulPrefab.GetComponent<Soul>().addMp* soulMagnification)
|
|
|
{
|
|
{
|
|
|
- playerController.mp -= soulPrefab.GetComponent<Soul>().addMp;
|
|
|
|
|
|
|
+ playerController.mp -= soulPrefab.GetComponent<Soul>().addMp * soulMagnification;
|
|
|
AttackJ();
|
|
AttackJ();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -110,6 +110,10 @@ public class Trans_Invisible : MonoBehaviour
|
|
|
BackToPlayer();
|
|
BackToPlayer();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ private void OnDisable()
|
|
|
|
|
+ {
|
|
|
|
|
+ BackToPlayer();
|
|
|
|
|
+ }
|
|
|
public void BackToPlayer()
|
|
public void BackToPlayer()
|
|
|
{
|
|
{
|
|
|
playerController.ani.Play("fall",0,0);
|
|
playerController.ani.Play("fall",0,0);
|
|
@@ -141,7 +145,7 @@ public class Trans_Invisible : MonoBehaviour
|
|
|
}
|
|
}
|
|
|
void AttackK()
|
|
void AttackK()
|
|
|
{
|
|
{
|
|
|
- playerController.mp -= kMp;
|
|
|
|
|
|
|
+ playerController.mp -= KMp;
|
|
|
GameObject smoke = Instantiate(smokeEffect);
|
|
GameObject smoke = Instantiate(smokeEffect);
|
|
|
smoke.transform.position = transform.position;
|
|
smoke.transform.position = transform.position;
|
|
|
lastSmokePos = transform.position;
|
|
lastSmokePos = transform.position;
|