CameraEffectShakeProxy.cs 394 B

123456789101112131415161718
  1. using System;
  2. public class CameraEffectShakeProxy : ControllerProxyBase<CameraController>
  3. {
  4. protected override void ThisStart()
  5. {
  6. this._autoEnable = false;
  7. }
  8. protected override void OnThisEnable()
  9. {
  10. base.effect.CameraShake(this.frame / 60f, this.strength, CameraController.ShakeTypeEnum.Rect, false);
  11. }
  12. public uint frame = 10u;
  13. public float strength = 0.3f;
  14. }