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

            Aim = e.LookingPosition;
            UpdateRotation();
        }
コード例 #4
0
        private void LookingHandle(SoldierLookingEvent e)
        {
            if (e.PlayerGuid != PlayerGuid)
            {
                return;
            }

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