|
@@ -7,6 +7,7 @@ public class LockSoul : MonoBehaviour
|
|
|
public int maxLockSoul;
|
|
public int maxLockSoul;
|
|
|
private int nowLock;
|
|
private int nowLock;
|
|
|
public List<Demonic> souls = new List<Demonic>();
|
|
public List<Demonic> souls = new List<Demonic>();
|
|
|
|
|
+ public PlayerController pc;
|
|
|
|
|
|
|
|
public void AddDenomic(Demonic d)
|
|
public void AddDenomic(Demonic d)
|
|
|
{
|
|
{
|
|
@@ -35,8 +36,10 @@ public class LockSoul : MonoBehaviour
|
|
|
if (c.ls == null)
|
|
if (c.ls == null)
|
|
|
{
|
|
{
|
|
|
c.ls = this;
|
|
c.ls = this;
|
|
|
|
|
+ pc = other.GetComponentInParent<PlayerController>();
|
|
|
}
|
|
}
|
|
|
c.isInSoulTower = true;
|
|
c.isInSoulTower = true;
|
|
|
|
|
+ pc.curSoulTower = gameObject;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -78,6 +81,10 @@ public class LockSoul : MonoBehaviour
|
|
|
|
|
|
|
|
public void ReleaseAllSouls()
|
|
public void ReleaseAllSouls()
|
|
|
{
|
|
{
|
|
|
|
|
+ if (pc.curSoulTower == gameObject && pc.isInSoulTower)
|
|
|
|
|
+ {
|
|
|
|
|
+ pc.isInSoulTower = false;
|
|
|
|
|
+ }
|
|
|
foreach(Demonic d in souls)
|
|
foreach(Demonic d in souls)
|
|
|
{
|
|
{
|
|
|
if (!d.isDie)
|
|
if (!d.isDie)
|