|
|
@@ -5,10 +5,16 @@ using System.Threading.Tasks;
|
|
|
|
|
|
public class InvisibleSoulCollector : MonoBehaviour
|
|
|
{
|
|
|
+ public int maxSoulNumber;
|
|
|
public int soulNumbers;
|
|
|
public SoulFollowEffect soulFollowEffect;
|
|
|
+
|
|
|
private void OnTriggerEnter(Collider other)
|
|
|
{
|
|
|
+ if (soulNumbers >= maxSoulNumber)
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
Soul soul = other.GetComponentInParent<Soul>();
|
|
|
if (soul)
|
|
|
{
|