private bool RecieveItemCallback(GameBaseMailBoxErrorCode errorCode, ItemBaseInfo[] arrayMailItemInfo) { if (errorCode == GameBaseMailBoxErrorCode.Success) { UserInfoManager.Get().GetUserInfo().AddItem(arrayMailItemInfo, image_ItemIcon.transform.position); UI_Mailbox.RemoveMailInfo(info); Destroy(gameObject); return(true); } return(false); }
private bool MailBoxInfoAck(GameBaseMailBoxErrorCode errorCode, MailInfo[] arrayMailInfo) { UI_Main.Get().obj_IndicatorPopup.SetActive(false); if (errorCode == GameBaseMailBoxErrorCode.Success && arrayMailInfo != null) { Debug.Log($"Mail Count : {arrayMailInfo.Length}"); UpdateMailbox(arrayMailInfo); RefreshSlots(); return(true); } Debug.Log("Can't get mail info."); Close(); return(false); }