|
@@ -12,7 +12,7 @@ public class Wall : MonoBehaviour
|
|
|
AttackTrigger attackTrigger = other.GetComponent<AttackTrigger>();
|
|
AttackTrigger attackTrigger = other.GetComponent<AttackTrigger>();
|
|
|
if (attackTrigger != null && attackTrigger.canBreakWall)
|
|
if (attackTrigger != null && attackTrigger.canBreakWall)
|
|
|
{
|
|
{
|
|
|
- totalNum -= attackTrigger.num;
|
|
|
|
|
|
|
+ totalNum -= attackTrigger.wallBrealNum;
|
|
|
if (totalNum <= 0)
|
|
if (totalNum <= 0)
|
|
|
{
|
|
{
|
|
|
Break();
|
|
Break();
|