public void UnregisterPulseController(IGATPulseController controller) { if (controller.OnPulseControl != _onPulseControl) { #if UNITY_EDITOR Debug.LogWarning("The registered controller must unregister itself."); #endif return; } _onPulseControl = null; }
public void BindOnPulse(string id, OnPulseHandler script) { var key = $"{nameof(BindOnPulse)}{id}"; if (_uniqueEventRegisteration.Contains(key)) { return; } _uniqueEventRegisteration.Add(key); OnPulse += script; }
public bool RegisterPulseController(IGATPulseController controller) { if (_onPulseControl != null) { #if UNITY_EDITOR Debug.LogWarning("There is already a registered controller for this pulse."); #endif return(false); } _onPulseControl = controller.OnPulseControl; return(true); }
/// <summary> /// Unsubscribes to the pulse. /// </summary> public void UnsubscribeToPulse( IGATPulseClient client ) { _onPulse -= client.OnPulse; _onStepsDidChange -= client.PulseStepsDidChange; }
public void UnregisterPulseController( IGATPulseController controller ) { if( controller.OnPulseControl != _onPulseControl ) { #if UNITY_EDITOR Debug.LogWarning( "The registered controller must unregister itself." ); #endif return; } _onPulseControl = null; }
public bool RegisterPulseController( IGATPulseController controller ) { if( _onPulseControl != null ) { #if UNITY_EDITOR Debug.LogWarning( "There is already a registered controller for this pulse." ); #endif return false; } _onPulseControl = controller.OnPulseControl; return true; }
public void BindOnPulse(OnPulseHandler script) { OnPulse += script; }
/// <summary> /// Unsubscribes to the pulse. /// </summary> public void UnsubscribeToPulse(IGATPulseClient client) { _onPulse -= client.OnPulse; _onStepsDidChange -= client.PulseStepsDidChange; }