/// <summary> /// Sets the adds the <see cref="source"/> to the Sources collection of the <see cref="target"/> <see cref="FloatAction"/>. /// </summary> /// <param name="source">The <see cref="FloatAction"/> to add as a source.</param> /// <param name="target">The <see cref="FloatAction"/> to have the Sources collection updated.</param> protected virtual void SetInputSource(FloatAction source, FloatAction target) { target.ClearSources(); target.AddSource(source); }
public void RegisterSysVolume(FloatAction action) { GetSysVolume = action; }
/// <summary> /// Adds the given <see cref="source"/> to the <see cref="LongitudinalAction"/> Sources collection. /// </summary> /// <param name="source">The <see cref="FloatAction"/> to add to the Sources collection.</param> public virtual void SetLongitudinalAxisSource(FloatAction source) { SetInputSource(source, LongitudinalAction); }
/// <summary> /// Adds the given <see cref="source"/> to the <see cref="VerticalAction"/> Sources collection. /// </summary> /// <param name="source">The <see cref="FloatAction"/> to add to the Sources collection.</param> public virtual void SetVerticalAxisSource(FloatAction source) { SetInputSource(source, VerticalAction); }
/// <summary> /// Adds the given <see cref="source"/> to the <see cref="LateralAction"/> Sources collection. /// </summary> /// <param name="source">The <see cref="FloatAction"/> to add to the Sources collection.</param> public virtual void SetLateralAxisSource(FloatAction source) { SetInputSource(source, LateralAction); }
private void Awake() { getProgress += () => timer; getProgress += () => timer * 2; }
public void RegisterSysVolume (FloatAction action) { GetSysVolume = action; }