public void DoClick() { EmoteHandler.Get().ResetTimeSinceLastEmote(); GameState.Get().GetFriendlySidePlayer().GetHeroCard().PlayEmote(this.emoteType); Network.Get().SendEmote(this.emoteType); EmoteHandler.Get().HideEmotes(); }
private void Update() { if (EmoteHandler.Get().EmoteSpamBlocked()) { if (!this.textIsGrey) { this.textIsGrey = true; this.displayText.TextColor = new Color(0.5372549f, 0.5372549f, 0.5372549f); } } else if (this.textIsGrey) { this.textIsGrey = false; this.displayText.TextColor = new Color(0f, 0f, 0f); } }