|
@@ -24,6 +24,9 @@ public class Spirits_Invisible : MonoBehaviour
|
|
|
[HideInInspector]
|
|
[HideInInspector]
|
|
|
public float time;
|
|
public float time;
|
|
|
public float stayTime;
|
|
public float stayTime;
|
|
|
|
|
+ [HideInInspector]
|
|
|
|
|
+ public float normalSpeed;
|
|
|
|
|
+ public float kMp;
|
|
|
|
|
|
|
|
private void Start()
|
|
private void Start()
|
|
|
{
|
|
{
|
|
@@ -34,7 +37,8 @@ public class Spirits_Invisible : MonoBehaviour
|
|
|
playerController.isInvisible = true;
|
|
playerController.isInvisible = true;
|
|
|
playerController.mp += addMp;
|
|
playerController.mp += addMp;
|
|
|
playerController.canfly = true;
|
|
playerController.canfly = true;
|
|
|
- for(int i = 0;i < playerController.beTargetCharacter.Count; i++)
|
|
|
|
|
|
|
+ normalSpeed = playerController.moveSpeed;
|
|
|
|
|
+ for (int i = 0;i < playerController.beTargetCharacter.Count; i++)
|
|
|
{
|
|
{
|
|
|
playerController.beTargetCharacter[i].targetCharacter = null;
|
|
playerController.beTargetCharacter[i].targetCharacter = null;
|
|
|
}
|
|
}
|
|
@@ -58,7 +62,9 @@ public class Spirits_Invisible : MonoBehaviour
|
|
|
}
|
|
}
|
|
|
if (playerController.isClickBtnSouth)
|
|
if (playerController.isClickBtnSouth)
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
time = 0;
|
|
time = 0;
|
|
|
|
|
+ playerController.moveSpeed = normalSpeed/2;
|
|
|
}
|
|
}
|
|
|
if (playerController.isinputK)
|
|
if (playerController.isinputK)
|
|
|
{
|
|
{
|
|
@@ -67,11 +73,20 @@ public class Spirits_Invisible : MonoBehaviour
|
|
|
{
|
|
{
|
|
|
AttackK();
|
|
AttackK();
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ playerController.moveSpeed = normalSpeed;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!playerController.isTransfiguration)
|
|
|
|
|
+ {
|
|
|
|
|
+ BackToPlayer();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
public void BackToPlayer()
|
|
public void BackToPlayer()
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
void AttackJ()
|
|
void AttackJ()
|
|
|
{
|
|
{
|
|
@@ -98,6 +113,7 @@ public class Spirits_Invisible : MonoBehaviour
|
|
|
}
|
|
}
|
|
|
void AttackK()
|
|
void AttackK()
|
|
|
{
|
|
{
|
|
|
|
|
+ playerController.mp -= kMp;
|
|
|
GameObject smoke = Instantiate(smokeEffect);
|
|
GameObject smoke = Instantiate(smokeEffect);
|
|
|
smoke.transform.position = transform.position;
|
|
smoke.transform.position = transform.position;
|
|
|
smoke.GetComponent<SmokeDestroy>().stayTime = stayTime;
|
|
smoke.GetComponent<SmokeDestroy>().stayTime = stayTime;
|