Пример #1
0
        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();
            }
        }
Пример #2
0
 public void StopAllShakes()
 {
     Coroutines.Stop("CameraShake");
 }
Пример #3
0
 public void Shake(Vector2 axis, float distance, float duration, float intensity)
 {
     Coroutines.Run(ShakeRoutine(axis, distance, intensity, duration), "CameraShake");
 }