Esempio n. 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);
 }
Esempio n. 2
0
 public void RegisterSysVolume(FloatAction action)
 {
     GetSysVolume = action;
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 6
0
 private void Awake()
 {
     getProgress += () => timer;
     getProgress += () => timer * 2;
 }
Esempio n. 7
0
	public void RegisterSysVolume (FloatAction action)
	{
		GetSysVolume = action;
	}