public void ShowPopup_BossOrField(ePopupState _state, string _title, string _content, string _YesText, UnityAction _YesFunc, string _NoText, UnityAction _NoFunc) { GameObject popupObj = ResourceManager.GetOBJCreatePrefab("PrefabYesOrNoPopup", Obj_Position.transform); PrefabYesOrNoPopup popup = popupObj.GetComponent <PrefabYesOrNoPopup>(); // 추후 DB 또는 관리를 하나 만들어서 출력할 것 popup.Initialize(_state, _title, _content, _YesText, _YesFunc, _NoText, _NoFunc); }
public void ClearBossPopup(ePopupState _state, string _title, string _content, UnityAction _func) { GameObject popupObj = ResourceManager.GetOBJCreatePrefab("PrefabYesOrNoPopup", Obj_Position.transform); PrefabYesOrNoPopup popup = popupObj.GetComponent <PrefabYesOrNoPopup>(); // 추후 DB 또는 관리를 하나 만들어서 출력할 것 popup.Initialize(_state, _title, _content, _func); }
public void ShowPopup_UserInfo_ReStart() { GameObject obj = ResourceManager.GetOBJCreatePrefab("PrefabYesOrNoPopup", Obj_Position.transform); PrefabYesOrNoPopup popup = obj.GetComponent <PrefabYesOrNoPopup>(); // 추후 DB 또는 관리를 하나 만들어서 출력할 것 popup.Initialize(ePopupState.YesOrNo, "알림!", "계정을 초기화하면 현재까지 진행한 모든 내용이 사라집니다. 진행하시겠습니까?", PopupYesDoing); }
public void ShowPopup(string _popupName) { GameObject popupObj = ResourceManager.GetOBJCreatePrefab(_popupName, Obj_Position.transform); PrefabYesOrNoPopup popup = popupObj.GetComponent <PrefabYesOrNoPopup>(); }