38 lines
778 B
C#
38 lines
778 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Animancer;
|
|
using DragonLi.Core;
|
|
using Mirror;
|
|
using Pathfinding;
|
|
using Unity.XR.PXR;
|
|
using UnityEngine;
|
|
|
|
public class Zombie : Enemy
|
|
{
|
|
public GameObject attackEffect;
|
|
private AnimationClip _attackClip;
|
|
public override void OnSpawn()
|
|
{
|
|
base.OnSpawn();
|
|
|
|
attackEffect.SetActive(false);
|
|
}
|
|
|
|
public override void OnUpdate()
|
|
{
|
|
base.OnUpdate();
|
|
}
|
|
|
|
public override void DoAttack()
|
|
{
|
|
base.DoAttack();
|
|
if(attackEffect==null)
|
|
return;
|
|
//attackEffect.SetActive(true);
|
|
// CoroutineTaskManager.Instance.WaitSecondTodo(() =>
|
|
// {
|
|
// attackEffect.SetActive(false);
|
|
// }, 0.5f);
|
|
}
|
|
}
|