|
@@ -18,11 +18,19 @@ public class CharacterColliders : MonoBehaviour
|
|
|
|
|
|
|
|
public void Attack1ShootEvent(int shootId)
|
|
public void Attack1ShootEvent(int shootId)
|
|
|
{
|
|
{
|
|
|
|
|
+ if (owner == null)
|
|
|
|
|
+ {
|
|
|
|
|
+ owner = GetComponentInParent<Character>();
|
|
|
|
|
+ }
|
|
|
owner.AttackShootEvent(1, shootId);
|
|
owner.AttackShootEvent(1, shootId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void Attack2ShootEvent(int shootId)
|
|
public void Attack2ShootEvent(int shootId)
|
|
|
{
|
|
{
|
|
|
|
|
+ if (owner == null)
|
|
|
|
|
+ {
|
|
|
|
|
+ owner = GetComponentInParent<Character>();
|
|
|
|
|
+ }
|
|
|
owner.AttackShootEvent(2, shootId);
|
|
owner.AttackShootEvent(2, shootId);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|