public void Tick()
 {
     if (Input.GetKeyDown(KeyCode.PageDown))
     {
         _avatarManager.SwitchToNextAvatar();
     }
     else if (Input.GetKeyDown(KeyCode.PageUp))
     {
         _avatarManager.SwitchToPreviousAvatar();
     }
     else if (Input.GetKeyDown(KeyCode.Home))
     {
         _settings.isAvatarVisibleInFirstPerson.value = !_settings.isAvatarVisibleInFirstPerson;
         _logger.Info($"{(_settings.isAvatarVisibleInFirstPerson.value ? "Enabled" : "Disabled")} first person visibility");
     }
     else if (Input.GetKeyDown(KeyCode.End))
     {
         _settings.resizeMode.value = (AvatarResizeMode)(((int)_settings.resizeMode.value + 1) % 3);
         _logger.Info($"Set resize mode to {_settings.resizeMode}");
     }
     else if (Input.GetKeyDown(KeyCode.Insert))
     {
         _settings.floorHeightAdjust.value = (FloorHeightAdjust)(((int)_settings.floorHeightAdjust.value + 1) % Enum.GetValues(typeof(FloorHeightAdjust)).Length);
         _logger.Info($"Set floor height adjust to {_settings.floorHeightAdjust}");
     }
 }
예제 #2
0
 public void Tick()
 {
     if (Input.GetKeyDown(KeyCode.PageDown))
     {
         _avatarManager.SwitchToNextAvatar();
     }
     else if (Input.GetKeyDown(KeyCode.PageUp))
     {
         _avatarManager.SwitchToPreviousAvatar();
     }
     else if (Input.GetKeyDown(KeyCode.Home))
     {
         _settings.isAvatarVisibleInFirstPerson = !_settings.isAvatarVisibleInFirstPerson;
         _logger.Info($"{(_settings.isAvatarVisibleInFirstPerson ? "Enabled" : "Disabled")} first person visibility");
     }
     else if (Input.GetKeyDown(KeyCode.End))
     {
         _settings.resizeMode = (AvatarResizeMode)(((int)_settings.resizeMode + 1) % 3);
         _logger.Info($"Set resize mode to {_settings.resizeMode}");
         _avatarManager.ResizeCurrentAvatar();
     }
     else if (Input.GetKeyDown(KeyCode.Insert))
     {
         _settings.enableFloorAdjust = !_settings.enableFloorAdjust;
         _logger.Info($"{(_settings.enableFloorAdjust ? "Enabled" : "Disabled")} floor adjust");
         _avatarManager.ResizeCurrentAvatar();
     }
 }