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

47 lines
882 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using DarkTonic.MasterAudio;
using DragonLi.Core;
using Mirror;
using Pathfinding;
using UnityEngine;
public class HR01 : Enemy
{
public Launcher leftLauncher;
public Launcher rightLauncher;
#if UNITY_EDITOR
[DisplayOnly]
#endif
public bool left = false;
public void DelSelf()
{
if (isServer)
{
GameManager.Ins.DeleteEnemy(id);
CreatExplosion();
}
}
public override void Shoot()
{
if (IsAlive)
{
if (left)
{
// Debug.Log("左边开火");
leftLauncher.Shoot();
}
else
{
// Debug.Log("右边开火");
rightLauncher.Shoot();
}
left = !left;
}
}
}