public void Destroy(float delay = 0.0f) { if (delay > 0.0f) { Coroutines.Run(DelayedDestroy(delay)); } else { for (int i = 0; i < _children.Count; i++) { _children[i].Destroy(); } _destroying = true; DisablePhysics(); } }
public void StopAllShakes() { Coroutines.Stop("CameraShake"); }
public void Shake(Vector2 axis, float distance, float duration, float intensity) { Coroutines.Run(ShakeRoutine(axis, distance, intensity, duration), "CameraShake"); }