/// <summary> /// Start shaking the cameras. /// </summary> public void Shake(float duration, Vector3 range, float decayStart) { foreach (var camera in Cameras) { ShakeHelper.Shake(this, camera.transform, duration, range, decayStart); } }
/// <summary> /// Perform the action /// </summary> /// <returns></returns> protected override void Execute(bool isStart) { if (Target != null) { ShakeHelper.Shake(Owner, Target.transform, Duration, Range, DecayStart); } }
/// <summary> /// Perform the action /// </summary> /// <returns></returns> protected void PerformAction() { var gameObject = Fsm.GetOwnerDefaultTarget(Target); if (gameObject != null) { ShakeHelper.Shake(Fsm.Owner, gameObject.transform, Duration.Value, Range.Value, DecayStart.Value); } }