Class InputProvider
Base class from which all input providers inherit.
Inheritance
InputProvider
Assembly: NWH.Common.dll
public abstract class InputProvider : MonoBehaviour
Fields
|
Edit this page
View Source
List of all InputProviders in the scene.
Declaration
public static List<InputProvider> Instances
Field Value
Methods
|
Edit this page
View Source
Declaration
public virtual void Awake()
|
Edit this page
View Source
Returns combined input of all InputProviders present in the scene.
Result will be positive if any InputProvider has the selected input set to true.
T is a type of InputProvider that the input will be retrieved from.
Declaration
public static bool CombinedInput<T>(Func<T, bool> selector) where T : InputProvider
Parameters
| Type |
Name |
Description |
| Func<T, bool> |
selector |
|
Returns
Type Parameters
|
Edit this page
View Source
Returns combined input of all InputProviders present in the scene.
Result will be a sum of all inputs of the selected type.
T is a type of InputProvider that the input will be retrieved from.
Declaration
public static int CombinedInput<T>(Func<T, int> selector) where T : InputProvider
Parameters
| Type |
Name |
Description |
| Func<T, int> |
selector |
|
Returns
Type Parameters
|
Edit this page
View Source
Returns combined input of all InputProviders present in the scene.
Result will be a sum of all inputs of the selected type.
T is a type of InputProvider that the input will be retrieved from.
Declaration
public static float CombinedInput<T>(Func<T, float> selector) where T : InputProvider
Parameters
| Type |
Name |
Description |
| Func<T, float> |
selector |
|
Returns
Type Parameters
|
Edit this page
View Source
Returns combined input of all InputProviders present in the scene.
Result will be a sum of all inputs of the selected type.
T is a type of InputProvider that the input will be retrieved from.
Declaration
public static Vector2 CombinedInput<T>(Func<T, Vector2> selector) where T : InputProvider
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Declaration
public virtual void OnDestroy()