IEnumerator Start() { var ipAddress = DebugServer.GetLanIpAddress(); debugServerIndexHtml = debugServerIndexHtmlAsset.text; debugServerIndexHtml = debugServerIndexHtml.Replace( "__TO_BE_REPLACED_WITH_ACTUAL_IP_ADDRESS_IN_RUNTIME__", ipAddress); debugServer = new DebugServer(debugServerPort); // 上書き検出 debugServer.RegisterRequestCallback("/", OnWebRequestRoot); debugServer.RegisterRequestCallback("/upload-file", OnWebRequestUploadFile); debugServer.RegisterRequestCallback("/delete-file", OnWebRequestDeleteFile); debugServer.RegisterRequestCallback("/delete-all-file", OnWebRequestDeleteAllFile); yield return(CoLoad()); }