16 lines
376 B
C#
16 lines
376 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Boss : Zombie
|
|
{
|
|
public GameObject touObj;
|
|
public override void DoAttack()
|
|
{
|
|
float[] atkStates=new float[3]{0,0.5f,1};
|
|
int atkStateId=Random.Range(0,3);
|
|
AnimatorComponent.SetFloat("atkState",atkStates[atkStateId]);
|
|
base.DoAttack();
|
|
}
|
|
}
|