Commit 96450ae0 authored by 赤子奈落's avatar 赤子奈落

fix ai select deck

parent f20f545b
This diff is collapsed.
fileFormatVersion: 2
guid: 5a77bc2b88f800841a2e00c4c97f214b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -71,8 +71,10 @@ public class AIRoom : WindowServantSP
ReadBots("config/bot.conf");
aideck_ = GameObject.Find("aideck_");
aideck_.SetActive(false);
//perfectdicky read deck ydk name
//ReadDecks();
foreach (var deck in UIHelper.GetDecks())
{
aideck_.GetComponent<UIPopupList>().AddItem(deck);
}
SetActiveFalse();
}
void onSelected()
......@@ -177,8 +179,7 @@ public class AIRoom : WindowServantSP
serverProcess.StartInfo.RedirectStandardOutput = true;
serverProcess.Start();
string port = serverProcess.StandardOutput.ReadLine();
//perfectdicky change DeckFile path
command += " Port=" + port + " DeckFile=\"deck/cyberdragon.ydk\"";
command += " Port=" + port + " DeckFile=\"deck/" + aideck_.GetComponent<UIPopupList>().value + ".ydk\"";
botProcess = new System.Diagnostics.Process();
botProcess.StartInfo.UseShellExecute = false;
......
......@@ -2401,7 +2401,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 179250}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalPosition: {x: 0, y: -58, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 493164}
......@@ -2841,7 +2841,7 @@ MonoBehaviour:
anchorOffset: 0
softBorderPadding: 1
renderQueue: 0
startingRenderQueue: 3011
startingRenderQueue: 3010
mClipTexture: {fileID: 0}
mAlpha: 1
mClipping: 3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment