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