|
|
@@ -12,6 +12,7 @@ public class Soul : MonoBehaviour
|
|
|
public int addMp = 10;
|
|
|
public uTweenPositionTarget tweenPos;
|
|
|
public float flySpeed = 10f;
|
|
|
+ public float upSpeed = 1;
|
|
|
|
|
|
public void Burst(Vector3 velocity)
|
|
|
{
|
|
|
@@ -38,4 +39,11 @@ public class Soul : MonoBehaviour
|
|
|
{
|
|
|
PlayerController.instance.mp += addMp;
|
|
|
}
|
|
|
+
|
|
|
+ private void FixedUpdate()
|
|
|
+ {
|
|
|
+ Vector3 velocity = rb.velocity;
|
|
|
+ velocity.y = upSpeed;
|
|
|
+ rb.velocity = velocity;
|
|
|
+ }
|
|
|
}
|