public void Trigger(ActionStateEvent stateEvent) { if (!stateEvent.Origin.Tags.Contain(EntityTags.Player)) { return; } FirstPersonCamera.AddForce(stateEvent.Rotation.eulerAngles, IsRotation, Frames); }
public void Handle(CollisionEvent arg) { var cameraShakeOnDamage = arg.Target.Get <CameraShakeOnDamage>(); if (cameraShakeOnDamage == null) { return; } FirstPersonCamera.AddForce(-arg.HitNormal * cameraShakeOnDamage.IntensityMulti, true); }
public void Trigger(ActionUsingNode node, string eventName) { FirstPersonCamera.AddForce(Shake, false); }