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

38 lines
726 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 override void Shoot()
{
if (IsAlive)
{
if (left)
{
// Debug.Log("左边开火");
leftLauncher.Shoot();
}
else
{
// Debug.Log("右边开火");
rightLauncher.Shoot();
}
left = !left;
}
}
}