private void Awake() { runner = new RunnerChangeValue <bool>(newState, toChange.SetActive, GetActive); timer.SubscribeToStarted(Run); timer.SubscribeToStopped(Stop); }
private void Awake() { runner = new RunnerChangeValue <TValue>(value, accessor.Set, accessor.Get); timer.SubscribeToStarted(Run); timer.SubscribeToStopped(Stop); }
private void Awake() { timer.SubscribeToStopped(Fire); }