예제 #1
0
 public void Trigger(ActionStateEvent stateEvent)
 {
     if (!stateEvent.Origin.Tags.Contain(EntityTags.Player))
     {
         return;
     }
     FirstPersonCamera.AddForce(stateEvent.Rotation.eulerAngles, IsRotation, Frames);
 }
예제 #2
0
        public void Handle(CollisionEvent arg)
        {
            var cameraShakeOnDamage = arg.Target.Get <CameraShakeOnDamage>();

            if (cameraShakeOnDamage == null)
            {
                return;
            }
            FirstPersonCamera.AddForce(-arg.HitNormal * cameraShakeOnDamage.IntensityMulti, true);
        }
예제 #3
0
 public void Trigger(ActionUsingNode node, string eventName)
 {
     FirstPersonCamera.AddForce(Shake, false);
 }