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)]); } }