Files
DefendNJ/Assets/_DefendNJ/Scripts/Enemys/BloodPack.cs
2025-09-05 15:44:54 +08:00

16 lines
364 B
C#

using System.Collections;
using System.Collections.Generic;
using Mirror;
using UnityEngine;
public class BloodPack : Airdrop
{
public override void OnDeath(object info, Transform _sender)
{
base.OnDeath(info, _sender);
GameManager.Ins.RepairTower();
NetworkServer.Destroy(transform.gameObject);
CreatEexplosion();
}
}