WaitForSecondsAction
Waits for a specified duration before completing.
Definition
Namespace: Paragon.Core.ActionSystem
Assembly: Paragon.dll
public class WaitForSecondsAction : ActionInheritance: Object → Action → WaitForSecondsAction
Variables
Variable
Type
Description
duration
float
Time to wait in seconds
Behavior
Uses Yield.WaitForSeconds(duration) for async waiting that respects Unity's time scale.
Example
// Use in ActionSequence to add delays between actions
ActionSequence sequence = new ActionSequence
{
new FadeInAction(),
new WaitForSecondsAction { duration = 2.0f },
new FadeOutAction()
};See Also
Last updated
Was this helpful?