Files
Zombie/Assets/_Zombie/Scripts/Enemys/BloodPack.cs

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();
}
}