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

32 lines
936 B
C#

using System;
namespace MCPForUnity.Editor.Services
{
/// <summary>
/// Default implementation of platform detection service
/// </summary>
public class PlatformService : IPlatformService
{
/// <summary>
/// Checks if the current platform is Windows
/// </summary>
/// <returns>True if running on Windows</returns>
public bool IsWindows()
{
return Environment.OSVersion.Platform == PlatformID.Win32NT;
}
/// <summary>
/// Gets the SystemRoot environment variable (Windows-specific)
/// </summary>
/// <returns>SystemRoot path, or "C:\\Windows" as fallback on Windows, null on other platforms</returns>
public string GetSystemRoot()
{
if (!IsWindows())
return null;
return Environment.GetEnvironmentVariable("SystemRoot") ?? "C:\\Windows";
}
}
}