private void LookHandle(LookEvent e) { if (e.Session != Session) { return; } if (e.Direction == LookDirection.Left) { bodyTransform.SetFlipY(true); } if (e.Direction == LookDirection.Right) { bodyTransform.SetFlipY(false); } }
private void LookHandle(LookEvent e) { if (e.Session != Session) { return; } if (e.Direction == LookDirection.Left) { flip.ToLeft(); } if (e.Direction == LookDirection.Right) { flip.ToRight(); } }
private void LookHandle(LookEvent e) { if (e.Session != Session) { return; } rotation.LookAt = e.Position; if (e.Direction == LookDirection.Left) { flip.SetLookAtLeft(); } if (e.Direction == LookDirection.Right) { flip.SetLookAtRight(); } }
public void OnLook(InputAction.CallbackContext context) { LookEvent.Invoke(context.ReadValue <Vector2>()); }