30 lines
624 B
C#
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();
|
|
}
|
|
}
|
|
}
|