using Beyond; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class AttackButtonHandler : MonoBehaviour { [SerializeField] private ButtonHandler buttonHandler; public void PressButton() { buttonHandler.SetDownState(); StartCoroutine(SetUpStateCoroutine()); } private IEnumerator SetUpStateCoroutine() { yield return new WaitForEndOfFrame(); yield return new WaitForEndOfFrame(); buttonHandler.SetUpState(); } }