Danil Iarosh 716f55c138
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Add player skin override and update game assets
- Добавлен компонент подмены спрайтов игрока перед началом игры.
- Обновлены сцена уровня, префабы, шейдеры, настройки импорта и данные призов.
- Зафиксирован embedded-пакет Unity MCP 9.6.8 и обновлены связанные файлы проекта.
2026-09-22 13:21:18 +03:00

25 lines
676 B
C#

using System;
using MCPForUnity.Editor.Helpers;
using MCPForUnity.Editor.Tools.Graphics;
using Newtonsoft.Json.Linq;
namespace MCPForUnity.Editor.Resources.Scene
{
[McpForUnityResource("get_volumes")]
public static class VolumesResource
{
public static object HandleCommand(JObject @params)
{
try
{
return VolumeOps.ListVolumes(@params ?? new JObject());
}
catch (Exception e)
{
McpLog.Error($"[VolumesResource] Error listing volumes: {e}");
return new ErrorResponse($"Error listing volumes: {e.Message}");
}
}
}
}