Files
KOF/Assets/_KOF/Scripts/Enemys/SDRRMI/SDRRMI.cs
2025-07-02 15:13:26 +08:00

30 lines
624 B
C#

using System.Collections;
using System.Collections.Generic;
using Mirror;
using UnityEngine;
public class SDRRMI : Enemy
{
public SDRRMIHand leftHand;
public SDRRMIHand rightHand;
[Server]
public override void OnSpawn(int id, EnemyType type, int lvl)
{
base.OnSpawn(id, type, lvl);
leftHand.atk = atk;
leftHand.gameObject.SetActive(true);
rightHand.atk = atk;
rightHand.gameObject.SetActive(true);
}
public void DelSelf()
{
if (isServer)
{
GameManager.Ins.DeleteEnemy(id);
CreatExplosion();
}
}
}