public void OnClick()//変更前static void Main(string[] args)//static入れると動かないので抜いた { Debug.Log("sucsess call"); var service = new MainService(); // TODO : 実行時にユーザーが画面で指定する情報 var param = new SimulationParam() { //Deck = new ICardInfo[]//IEne...インスタンスの生成 //{ // //new Village() { Priority = 2 }, //}, Count = 20, IsShowAllResult = false }; //やりたいことの雰囲気 //Debug.Log(deck.Count); BuildDeck buildDeck = GameObject.Find("DeckBuilder").GetComponent <BuildDeck>(); //param.Deck = Enumerable.Repeat(new Copper(), numCopper); service.Exec(param); Debug.Log("終了。Press Any Key."); //Console.ReadKey(); }
static void Main(string[] args) { var service = new MainService(); // TODO : 実行時にユーザーが画面で指定する情報 var param = new SimulationParam() { Deck = new ICardInfo[] { new Copper(), new Copper(), new Copper(), new Copper(), new Copper(), new Copper(), new Copper(), new Estate(), new Estate(), new Estate(), new Smithy() { Priority = 1 }, new Smithy() { Priority = 1 }, new Smithy() { Priority = 1 }, new Village() { Priority = 2 }, new Village() { Priority = 2 }, new Village() { Priority = 2 }, new Village() { Priority = 2 }, new Village() { Priority = 2 }, }, Count = 20, IsShowAllResult = true }; service.Exec(param); Console.WriteLine("終了。Press Any Key."); Console.ReadKey(); }