void Restart() { shake = false; if (delay > 0f) { DelayedFunctionCaller.DelayedCall(delay, StartShake); } else { StartShake(); } }
void Awake() { Instance = this; }
void OnStartAndEnable() { stop = true; DelayedFunctionCaller.DelayedCall(delay, StartAnimation); }