// 属性受animation控制,需要在animation之后执行,即使用LateUpdate() void LateUpdate() { if (!shakeable) { return; } ShakeCamera.GetInstance()?.Shake(shakeArgs, frequency); }
private void OnDisable() { ShakeCamera.GetInstance()?.Recover(); }
private void Awake() { s_instance = this; }