Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
    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);
    }