|
@@ -47,14 +47,12 @@ public class Soul : MonoBehaviour
|
|
|
}
|
|
}
|
|
|
public void Burst(Vector3 velocity)
|
|
public void Burst(Vector3 velocity)
|
|
|
{
|
|
{
|
|
|
- rb.isKinematic = false;
|
|
|
|
|
rb.velocity = velocity;
|
|
rb.velocity = velocity;
|
|
|
collected = false;
|
|
collected = false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public async void BeCollect(int id)
|
|
public async void BeCollect(int id)
|
|
|
{
|
|
{
|
|
|
- rb.isKinematic = true;
|
|
|
|
|
collected = true;
|
|
collected = true;
|
|
|
tweenPos.from = transform;
|
|
tweenPos.from = transform;
|
|
|
tweenPos.to = PlayersInput.instance[id].transform;
|
|
tweenPos.to = PlayersInput.instance[id].transform;
|