24 lines
378 B
C#
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);
|
|
}
|
|
|
|
}
|