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

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