Skip to content
Snippets Groups Projects
AntiPlayer.cs 314 B
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AntiPlayer : Fighter
{

    string[] attacks = new string[] { "Attack1", "Attack2", "Attack3" };

    protected override void Attack()
    {
        animator.SetTrigger(attacks[Random.Range(0, attacks.Length)]);
    }

}