void InitDlg() { float prob = Random.Range(0f, 1000f); if(prob > m_Record.Probability) return; if(m_Dlg != null) Destroy(m_Dlg.gameObject); GameObject goDlg = Instantiate(Resources.Load("UI/AsGUI/GUI_PromotionDlg")) as GameObject; m_Dlg = goDlg.GetComponent<AsPromotionDlg>(); m_Dlg.Init(m_Record); }
public void SetInput_Del(AsPromotionDlg.CancelClicked _cancel) { m_Cancel = _cancel; }