XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

AshfallFrontier

【Unity】灰烬边境,一款生存策略游戏

公开
关注 0 Fork 0 Star 0
UTF-8
param([string]$EditorPath = 'F:\Unity\6000.1.3f1\Editor\Unity.exe')
$ErrorActionPreference = 'Stop'
$projectRoot = Split-Path -Parent $PSScriptRoot
$validationProject = Join-Path $projectRoot '.tools/validation'
$cli = Join-Path $env:LOCALAPPDATA 'Unity/bin/unity.exe'
if (!(Test-Path -LiteralPath $EditorPath)) { throw "Editor not found: $EditorPath" }
if (!(Test-Path -LiteralPath (Join-Path $validationProject 'Assets/Ashfall/Scenes/Frontier.unity'))) {
    throw 'This local validation copy is unavailable. Open the main project with Unity 6000.3.24f1.'
}
& $cli --no-banner --no-pager open $validationProject --editor-path $EditorPath
if ($LASTEXITCODE -ne 0) { throw 'Unity CLI failed to open the validation project.' }