Пример #1
0
        // 属性受animation控制,需要在animation之后执行,即使用LateUpdate()
        void LateUpdate()
        {
            if (!shakeable)
            {
                return;
            }

            ShakeCamera.GetInstance()?.Shake(shakeArgs, frequency);
        }
Пример #2
0
 private void OnDisable()
 {
     ShakeCamera.GetInstance()?.Recover();
 }
Пример #3
0
 private void Awake()
 {
     s_instance = this;
 }