CameraAnimControlTools.cs 392 B

123456789101112
  1. using System;
  2. using UnityEngine;
  3. public class CameraAnimControlTools : BaseBehaviour
  4. {
  5. public void CameraShake(AnimationEvent animationEvent)
  6. {
  7. int intParameter = animationEvent.intParameter;
  8. float floatParameter = animationEvent.floatParameter;
  9. R.Camera.Controller.CameraShake((float)intParameter / 60f, floatParameter, CameraController.ShakeTypeEnum.Rect, false);
  10. }
  11. }