public void SetPresettingSetting2() { try{ //기존에 해당 게임의 라인업을 불러온다 List = UserMgr.LineUpList[transform.FindChild("BG").FindChild("gameSeq").GetComponent <UILabel> ().text]; SetPresettingSetting(); }catch { //기존에 해당 게임의 라인업이 없으면 새로 등록 GGPL = new GetGamePresetLineupEvent(new EventDelegate(this, "getlineup")); NetMgr.GetGamePresetLineup(int.Parse(transform.FindChild("BG").FindChild("gameSeq").GetComponent <UILabel> ().text), GGPL); } }
public void Button() { //선택된 콘테스트의 참여루비 UserMgr.UsingRuby = int.Parse(transform.FindChild("Cost").FindChild("value").GetComponent <UILabel> ().text.Replace("[b]", "")); ScriptMainTop.OpenBettingCheck = true; //선택된 콘테스트의 gameseq UserMgr.GameSeq = int.Parse(transform.parent.FindChild("BG").FindChild("GameSeq").GetComponent <UILabel> ().text); transform.root.FindChild("Scroll").FindChild("Main").FindChild("PreSetting").GetComponent <PreSettingCommander> ().Mode = "Update"; UserMgr.CurrentContestSeq = int.Parse(transform.FindChild("BG").FindChild("contestSeq").GetComponent <UILabel> ().text); UserMgr.CurrentPresetSeq = int.Parse(transform.FindChild("BG").FindChild("presetSeq").GetComponent <UILabel> ().text); Debug.Log("GETGETGET"); for (int i = 0; i < transform.FindChild("BG").FindChild("presetList").childCount; i++) { List.Add(int.Parse(transform.FindChild("BG").FindChild("presetList").GetChild(i).GetComponent <UILabel>().text)); } // GSE = new GetScheduleEvent(new EventDelegate(this,"GET")); // NetMgr.GetScheduleToday (GSE); // UserMgr.ContestStatus = 1; if (UserMgr.ContestStatus == 2) { //게임이 진행 중 일때 try{ if (UserMgr.LineUpList[transform.parent.FindChild("BG").FindChild("GameSeq").GetComponent <UILabel>().text] != null) { Lists = UserMgr.LineUpList[transform.parent.FindChild("BG").FindChild("GameSeq").GetComponent <UILabel>().text]; GSE = new GetScheduleEvent(new EventDelegate(this, "GET")); NetMgr.GetScheduleToday(GSE); } else { Debug.Log("else"); GGPL = new GetGamePresetLineupEvent(new EventDelegate(this, "GetLineupStart")); NetMgr.GetGamePresetLineup(int.Parse(transform.parent.FindChild("BG").FindChild("GameSeq").GetComponent <UILabel>().text), GGPL); } }catch { Debug.Log("Catch"); GGPL = new GetGamePresetLineupEvent(new EventDelegate(this, "GetLineupStart")); NetMgr.GetGamePresetLineup(int.Parse(transform.parent.FindChild("BG").FindChild("GameSeq").GetComponent <UILabel>().text), GGPL); } } else { //게임이 시작되지 않았을 때 try{ if (UserMgr.LineUpList[transform.parent.FindChild("BG").FindChild("GameSeq").GetComponent <UILabel>().text] != null) { Lists = UserMgr.LineUpList[transform.parent.FindChild("BG").FindChild("GameSeq").GetComponent <UILabel>().text]; PresetChange(); } else { Debug.Log("else"); GGPL = new GetGamePresetLineupEvent(new EventDelegate(this, "GetLineup")); NetMgr.GetGamePresetLineup(int.Parse(transform.parent.FindChild("BG").FindChild("GameSeq").GetComponent <UILabel>().text), GGPL); } }catch { Debug.Log("Catch"); GGPL = new GetGamePresetLineupEvent(new EventDelegate(this, "GetLineup")); NetMgr.GetGamePresetLineup(int.Parse(transform.parent.FindChild("BG").FindChild("GameSeq").GetComponent <UILabel>().text), GGPL); } } }
public void SetPreset() { GGPL = new GetGamePresetLineupEvent(new EventDelegate(this, "getlineup")); NetMgr.GetGamePresetLineup(int.Parse(transform.FindChild("BG").FindChild("gameSeq").GetComponent <UILabel> ().text), GGPL); }