public void DeactivateRuntimeBehavior() { platformBehaviorCTS?.Cancel(); platformBehaviorCTS = null; OnInspectionStateChange?.Invoke(this); }
private void ActivateRuntimeBehavior() { if (currentState == States.Extended) { BeginState(States.Contracting, loop: false); } else if (currentState == States.Contracted) { BeginState(States.Extending, loop: false); } else { BeginState(currentState, loop: false); } OnInspectionStateChange?.Invoke(this); }