using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Beyond { public class AttackStep : MonoBehaviour { [SerializeField] private bMeleeCombatInput bMeleeCombatInput; public BaseStepController baseStepController; public ScrollRect scrollRectToDisable; private void Start() { // baseStepController.OnStarted += () => scrollRectToDisable.enabled=false; baseStepController.ConditionsAreMet += () => bMeleeCombatInput.isAttacking; // baseStepController.OnCompleted += () => scrollRectToDisable.enabled = true; } } }