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 ...@@ -71,8 +71,10 @@ public class AIRoom : WindowServantSP
ReadBots("config/bot.conf"); ReadBots("config/bot.conf");
aideck_ = GameObject.Find("aideck_"); aideck_ = GameObject.Find("aideck_");
aideck_.SetActive(false); aideck_.SetActive(false);
//perfectdicky read deck ydk name foreach (var deck in UIHelper.GetDecks())
//ReadDecks(); {
aideck_.GetComponent<UIPopupList>().AddItem(deck);
}
SetActiveFalse(); SetActiveFalse();
} }
void onSelected() void onSelected()
...@@ -177,8 +179,7 @@ public class AIRoom : WindowServantSP ...@@ -177,8 +179,7 @@ public class AIRoom : WindowServantSP
serverProcess.StartInfo.RedirectStandardOutput = true; serverProcess.StartInfo.RedirectStandardOutput = true;
serverProcess.Start(); serverProcess.Start();
string port = serverProcess.StandardOutput.ReadLine(); string port = serverProcess.StandardOutput.ReadLine();
//perfectdicky change DeckFile path command += " Port=" + port + " DeckFile=\"deck/" + aideck_.GetComponent<UIPopupList>().value + ".ydk\"";
command += " Port=" + port + " DeckFile=\"deck/cyberdragon.ydk\"";
botProcess = new System.Diagnostics.Process(); botProcess = new System.Diagnostics.Process();
botProcess.StartInfo.UseShellExecute = false; botProcess.StartInfo.UseShellExecute = false;
......
...@@ -2401,7 +2401,7 @@ Transform: ...@@ -2401,7 +2401,7 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 179250} m_GameObject: {fileID: 179250}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 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_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 493164} m_Father: {fileID: 493164}
...@@ -2841,7 +2841,7 @@ MonoBehaviour: ...@@ -2841,7 +2841,7 @@ MonoBehaviour:
anchorOffset: 0 anchorOffset: 0
softBorderPadding: 1 softBorderPadding: 1
renderQueue: 0 renderQueue: 0
startingRenderQueue: 3011 startingRenderQueue: 3010
mClipTexture: {fileID: 0} mClipTexture: {fileID: 0}
mAlpha: 1 mAlpha: 1
mClipping: 3 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