CustomArgumentGameAction<T>
An abstract class in Root.Township, the global namespace.
Base for a game task action that only checks one kind of task argument.
- Listed in Global namespace: C to D
- Inherits or implements
GameAction - Derived types
DestroyHealthObjectTask,FinishSpawnProjectTask,HandTouchTask,HashSetAction<T>,MaxValueTask,TransferAmountTask
Constructors
| Member | What it is |
|---|---|
protected CustomArgumentGameAction() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Methods
| Member | What it is |
|---|---|
override bool IsValid(GameTaskActionArgument argument) | Casts the argument to the expected type (null if it's another type) and checks it. |
protected abstract bool IsValid(T argument) | Casts the argument to the expected type (null if it's another type) and checks it. |