public void OnSaveLoadDataButtonClick(SystemItemType type) { selectSelectItem = type; switch (selectSelectItem) { case SystemItemType.save1: systemInfoLabel.text = string.Format("データ1の位置でセーブする?"); break; case SystemItemType.save2: systemInfoLabel.text = string.Format("データ2の位置でセーブする?"); break; case SystemItemType.save3: systemInfoLabel.text = string.Format("データ3の位置でセーブする?"); break; case SystemItemType.save4: systemInfoLabel.text = string.Format("データ4の位置でセーブする?"); break; case SystemItemType.load1: systemInfoLabel.text = string.Format("データ1の位置でロードする?"); break; case SystemItemType.load2: systemInfoLabel.text = string.Format("データ2の位置でロードする?"); break; case SystemItemType.load3: systemInfoLabel.text = string.Format("データ3の位置でロードする?"); break; case SystemItemType.load4: systemInfoLabel.text = string.Format("データ4の位置でロードする?"); break; case SystemItemType.none: break; case SystemItemType.exit: systemInfoLabel.text = string.Format("ゲームを終了する?"); break; default: break; } SureContainer.SetActive(true); }
public void OnExitButtonClick() { systemInfoLabel.text = string.Format("ゲームを終了する?"); this.selectSelectItem = SystemItemType.exit; SureContainer.SetActive(true); }