|
|
@@ -11,7 +11,7 @@ public class SoulBoom : MonoBehaviour
|
|
|
public bool isBoom;
|
|
|
public AttackInfo attackInfo;
|
|
|
public float destroyTime;
|
|
|
- public List<Character> characters = new List<Character>();
|
|
|
+ public List<MoveCharacter> characters = new List<MoveCharacter>();
|
|
|
public bool isTransfiguration;
|
|
|
public float soulUnstableTime;
|
|
|
public Transform parent;
|
|
|
@@ -51,12 +51,17 @@ public class SoulBoom : MonoBehaviour
|
|
|
target = new Vector3(-attackInfo.attackDir.x, attackInfo.attackDir.y,
|
|
|
attackInfo.attackDir.z);
|
|
|
}
|
|
|
- characters[i].isSoulUnstable = true;
|
|
|
- characters[i].soulUnstableTime = soulUnstableTime;
|
|
|
+
|
|
|
+
|
|
|
characters[i].BeHit
|
|
|
(attackInfo.damage, target * attackInfo.force,
|
|
|
attackInfo.changeHurt, attackInfo.repelValue);
|
|
|
-
|
|
|
+ if (isTransfiguration)
|
|
|
+ {
|
|
|
+ characters[i].isSoulUnstable = true;
|
|
|
+ characters[i].soulUnstableTime = soulUnstableTime;
|
|
|
+ characters[i].ChangeMat(2);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -74,7 +79,7 @@ public class SoulBoom : MonoBehaviour
|
|
|
if (!isTransfiguration && (other.gameObject.layer == 6 || other.gameObject.layer == 7)
|
|
|
&& other.name == "BodyCollider")
|
|
|
{
|
|
|
- Character character = other.GetComponentInParent<Character>();
|
|
|
+ MoveCharacter character = other.GetComponentInParent<MoveCharacter>();
|
|
|
if (!characters.Exists(t => t == character))
|
|
|
{
|
|
|
characters.Add(character);
|
|
|
@@ -84,7 +89,7 @@ public class SoulBoom : MonoBehaviour
|
|
|
if (isTransfiguration && other.gameObject.layer == 8
|
|
|
&& other.name == "BodyCollider")
|
|
|
{
|
|
|
- Character character = other.GetComponentInParent<Character>();
|
|
|
+ MoveCharacter character = other.GetComponentInParent<MoveCharacter>();
|
|
|
if (!characters.Exists(t => t == character))
|
|
|
{
|
|
|
|
|
|
@@ -97,7 +102,7 @@ public class SoulBoom : MonoBehaviour
|
|
|
if (!isTransfiguration && (other.gameObject.layer == 6 || other.gameObject.layer == 7)
|
|
|
&& other.name == "BodyCollider")
|
|
|
{
|
|
|
- Character character = other.GetComponentInParent<Character>();
|
|
|
+ MoveCharacter character = other.GetComponentInParent<MoveCharacter>();
|
|
|
if (characters.Exists(t => t == character))
|
|
|
{
|
|
|
characters.Remove(character);
|
|
|
@@ -106,7 +111,7 @@ public class SoulBoom : MonoBehaviour
|
|
|
if (isTransfiguration && other.gameObject.layer == 8
|
|
|
&& other.name == "BodyCollider")
|
|
|
{
|
|
|
- Character character = other.GetComponentInParent<Character>();
|
|
|
+ MoveCharacter character = other.GetComponentInParent<MoveCharacter>();
|
|
|
if (characters.Exists(t => t == character))
|
|
|
{
|
|
|
characters.Remove(character);
|