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

19 lines
433 B
C#

using System.Collections;
using System.Collections.Generic;
using Mirror;
using UnityEngine;
public class JoinControl : Airdrop
{
public override void OnDeath(object info, Transform _sender)
{
base.OnDeath(info, _sender);
if ((int)info != -1)
{
GameManager.Ins.JoinControlTower((int)info);
}
NetworkServer.Destroy(transform.gameObject);
CreatEexplosion();
}
}