public void SendMessage(MessageType type, Action callback) { if ((type & MessageType.Corner) == MessageType.Corner) { MessageController.Enqueue(SpriteManager.GetSprite(spriteKey), GetDisplayName()); } callback?.Invoke(); }
public virtual void SendMessage(MessageType type, Action callback = null) { if ((type & MessageType.Corner) == MessageType.Corner) { /* * GameObject popup = ObjectCache.RelicGetMsg; * popup.transform.Find("Text").GetComponent<TMPro.TextMeshPro>().text = Language.Language.Get(nameKey, "UI"); * popup.transform.Find("Icon").GetComponent<SpriteRenderer>().sprite = SpriteManager.GetSprite(spriteKey); * popup.SetActive(true); */ MessageController.Enqueue(SpriteManager.GetSprite(spriteKey), Language.Language.Get(nameKey, "UI")); } callback?.Invoke(); }