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