Esempio n. 1
0
        public static void MainCameraShake()
        {
            if (Camera.main == null)
            {
                return;
            }
            CameraShake s = Camera.main.gameObject.GetOrAddComponent <CameraShake>();

            s.Shake();
        }
Esempio n. 2
0
        public static void MainCameraShake(float magnitude, float duration)
        {
            CameraShake s = Camera.main.gameObject.GetOrAddComponent <CameraShake>();

            s.Shake(magnitude, duration);
        }
Esempio n. 3
0
        public static void MainCameraShake()
        {
            CameraShake s = Camera.main.gameObject.GetOrAddComponent <CameraShake>();

            s.Shake();
        }