public void HideErrorDialog() { if (this.ErrorDialog != null) { this.ErrorDialog.Close(); this.ErrorDialog = null; } }
private void CreateErrorDialog() { // エラーダイアログのロード var prefab = Resources.Load("UI/Dialog") as GameObject; var errorDialog = Instantiate(prefab); errorDialog.SetActive(false); this.ErrorDialog = errorDialog.GetComponent <CommonWindow.Dialog>(); }