Table of Contents

Method DelayedCallAsync

Namespace
Titipi.MocaLib

DelayedCallAsync(float, Action, bool)

Invokes callback after delay seconds. When ignoreTimeScale is true (default), the wait is based on real time so it is unaffected by Time.timeScale pausing or slow-motion. When false, Unity's scaled time is used via Awaitable.WaitForSecondsAsync.

public static Awaitable DelayedCallAsync(float delay, Action callback, bool ignoreTimeScale = true)

Parameters

delay float
callback Action
ignoreTimeScale bool

Returns

Awaitable