public void SetMessage(InboxMessage m) { message = m; description.text = message.message; message.items.ForEach(item => { var prefab = Instantiate(itemPrefab, itemsCanvas); prefab.SetInboxItem(item, itemsCanvas.rect.height); }); claimButton.AddClickListener(() => { claimButton.ShowIndicator(); inboxService.Claim(message, data => { Destroy(gameObject); }); }); CheckClaimButton(); signalBus.Subscribe <ResourcesSignal>(CheckClaimButton); }