using System.Collections; using System.Collections.Generic; using UnityEngine; using System; public class OpponentController : Controller { public static event Action<int> handChange; private float offsetDistance; void Start() { inputs = new Inputs(); currentHand = 1; if (handChange != null) { handChange(currentHand); } myTurn = false; } public override void changeTurn() { if (myTurn) { animatorController.SetTrigger("AtkTurn"); myTurn = false; } else { animatorController.SetTrigger("DefTurn"); myTurn = true; } //do something } }