UsingAbilityCondition.cs (471B)
1 using Slimecing.Characters; 2 using UnityEngine; 3 4 namespace Slimecing.StateMachine.StateChangers 5 { 6 public class UsingAbilityCondition : StateChangerCondition 7 { 8 [SerializeField] private AbilityUser abilityUser; 9 [SerializeField] private bool isUsingAbility; 10 11 public override bool IsMet() 12 { 13 if (abilityUser == null) return false; 14 return abilityUser.CheckForEffects() == isUsingAbility; 15 } 16 } 17 }