HoldButtonInputTrigger.cs (638B)
1 using UnityEngine; 2 3 namespace Slimecing.Triggers.TriggerLogic 4 { 5 [CreateAssetMenu(fileName = "HoldButtonInputTrigger", menuName = "Triggers/InputTriggers/HoldButtonInputTrigger")] 6 public class HoldButtonInputTrigger : TriggerInput 7 { 8 protected override void TriggerStarted() 9 { 10 OnTriggerStateChange(TriggerState.Started); 11 } 12 13 protected override void TriggerPerformed() 14 { 15 OnTriggerStateChange(TriggerState.Performed); 16 } 17 18 protected override void TriggerCanceled() 19 { 20 OnTriggerStateChange(TriggerState.Canceled); 21 } 22 } 23 }