Свойство | Тип | Описание | |
---|---|---|---|
chainToTrigger | BaseTrigger, | ||
delaySecsAfterAction | float | ||
delaySecsToAction | float | ||
delaySecsToCondition | float |
Метод | Описание | |
---|---|---|
Start ( ) : void | ||
Update ( ) : void | ||
reset ( ) : void |
Reset the Trigger so it can be used again. Note, that Start() needs to be called seperate from this method, which is done automatically if this script is started with: enabled=true
|
Метод | Описание | |
---|---|---|
action ( ) : void |
Called when the condition returns true. Afterward, the Trigger is disabled, and the next Chain trigger enabled (if it exists). delaySecsAfterAction waits before terminating the trigger.
|
|
condition ( ) : bool |
The condition is called every frame update until it returns true. We wait for delaySecsToAction before firing the action, after this method returns true.
|
|
initialAction ( ) : void |
Any initialization you want to happen *before* we start checking the condition. Initialization waits for delaySecsToCondition before calling this method.
|
protected abstract initialAction ( ) : void | ||
Результат | void |