Пример #1
0
 /// <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);
 }
Пример #2
0
 public void RegisterSysVolume(FloatAction action)
 {
     GetSysVolume = action;
 }
Пример #3
0
 /// <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);
 }
Пример #4
0
 /// <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);
 }
Пример #5
0
 /// <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);
 }
Пример #6
0
 private void Awake()
 {
     getProgress += () => timer;
     getProgress += () => timer * 2;
 }
Пример #7
0
	public void RegisterSysVolume (FloatAction action)
	{
		GetSysVolume = action;
	}