Files
MRCS/Assets/_MrCs/Scripts/Enemys/NXR03.cs

24 lines
378 B
C#

using System;
using UnityEngine;
public class NXR03 : Enemy
{
public GameObject bomb;
public void Start()
{
if (isServer)
{
behaviorTree.RegisterEvent("DelSelf", DelSelf2);
}
}
public override void UpdateRotation() { }
// 自毁
public void DelSelf2()
{
ApplyDamage(99999, null, null);
}
}