public void OnShowing(SwrveMessageFormat format) { }
public void OnDismiss(SwrveMessageFormat format) { // Resume game this.gameController.getGame().resumeGame(); }
public override void MessageWasShownToUser(SwrveMessageFormat messageFormat) { }
public void OnShow(SwrveMessageFormat format) { // Pause game this.gameController.getGame().pauseGame(); }
public void OnDismiss(SwrveMessageFormat format) { // Resume app container.UIEnabled = true; }
public void OnShow(SwrveMessageFormat format) { // Pause app container.UIEnabled = false; }
public void OnShow(SwrveMessageFormat format) { // Pause app, disable clicks on other UI elements // Optionally: custom message display (for example: transparent background) // format.Message.BackgroundAlpha = 0f; }
public void OnDismiss(SwrveMessageFormat format) { // Resume app and clicks in other UI elements // Invoking ResourcesUpdatedCallback on dismiss just to update the UI. SwrveComponent.Instance.SDK.config.ResourcesUpdatedCallback.Invoke(); }
public void OnShowing(SwrveMessageFormat format) { // Message displaying, UI elements must continue to be disabled }