void OnServerDismissChanceCard(AnimationPb animation) { // Server dismissed the chance card, not need to respond to the // PromptConfirmationRequest anymore. PromptConfirmationRequest = null; EventBus.AutomaticallyDismissForeground?.Invoke(); }
protected override void OnDismiss() { if (PromptConfirmationRequest != null) { Prisel.Protobuf.Packet request = PromptConfirmationRequest; PromptConfirmationRequest = null; EventBus.ConfirmChance?.Invoke(request); } }
void OnPromptChanceConfirmation(Prisel.Protobuf.Packet packet) { SetTouchDismissible(true); PromptConfirmationRequest = packet; }