Exemple #1
0
 private void HandleSoldierLookingEvent(SoldierLookingEvent e)
 {
     if (e.PlayerGuid == PlayerGuid)
     {
         syncData.LookingPosition = e.LookingPosition;
     }
 }
 private void LookingHandle(SoldierLookingEvent e)
 {
     if (e.PlayerGuid == PlayerGuid)
     {
         RotationInDegrees = Position.GetAngle(e.LookingPosition);
     }
 }
Exemple #3
0
        private void LookingHandle(SoldierLookingEvent e)
        {
            if (e.PlayerGuid != PlayerGuid)
            {
                return;
            }

            Aim = e.LookingPosition;
            UpdateRotation();
        }
        private void LookingHandle(SoldierLookingEvent e)
        {
            if (e.PlayerGuid != PlayerGuid)
            {
                return;
            }

            SetLookPosition(e.LookingPosition);
            PublishFlipEvent();
        }