/// <summary> /// ボタン選択 /// </summary> /// <param name="number">選択されたボタン</param> public void OnClick(int number) { if (number == Back) { // 戻るボタン Debug.Log("back"); isSelectedBack = true; return; } if (number == CpuLevel1) { // Level1ボタン Debug.Log("CpuLevel1"); level = new BoardCpuLevel(BoardCpuLevel.Level.Level1); type = GetClickCpuLevel1Type(mode); return; } if (number == CpuLevel2) { // Level2ボタン Debug.Log("CpuLevel2"); level = new BoardCpuLevel(BoardCpuLevel.Level.Level2); type = GetClickCpuLevel2Type(mode); return; } }
private void Start() { //mode = ConfirmMode.CvC; type = MainmenuConstant.Type.None; SetModeText(mode); SetCpuText(PlayerConstant.Type.Cpu1, cpu1); SetCpuText(PlayerConstant.Type.Cpu2, cpu2); if (mode == ConfirmMode.PvC) { SetCpu2TextEmpty(); } }
public void OnClick(int number) { if (number == PlayerVsCpu) { select = MainmenuConstant.Type.PvcCpuLevelSelect; return; } if (number == CpuVsCpu) { select = MainmenuConstant.Type.CvcCpuLevelSelect1; return; } }
/// <summary> /// ボタン選択 /// </summary> /// <param name="number">選択されたボタン</param> public void OnClick(int number) { Debug.Log(number); if (number == BackButton) { isSelectedBack = true; return; } if (number == StartButton) { type = MainmenuConstant.Type.Start; return; } }
/// <summary> /// 開始 /// </summary> public void Start() { type = MainmenuConstant.Type.None; isSelectedBack = false; // CPU選択テキストの取得 GameObject g = transform.Find("Canvas/CpuLevelText").gameObject; UnityEngine.Assertions.Assert.IsNotNull(g); cpuSelectText = g.GetComponent <UnityEngine.UI.Text>(); UnityEngine.Assertions.Assert.IsNotNull(cpuSelectText); // テキスト設定 SetModeToText(mode); IsStartCalled = true; }
public MainmenuPlayerModeSelect() { select = MainmenuConstant.Type.None; }