In-Game Pop-Ups

Find samples for the Popups in the Assets/Homa Games/Popups/Sample folder.

Screenshot 2021-10-06 at 14.33.43    Screenshot 2021-10-06 at 14.33.31

Settings


using HomaGames.Settings;

private void Start()
{
                // Show the Popup
                SettingsPopup.Open();
                // Hide the Popup
                //SettingsPopup.Close();
}

private void OnEnable()
{
                // Listen to button changes
        SettingsPopup.OnMusicChanged += OnMusicToggle;
        SettingsPopup.OnSoundsChanged += OnSoundsToggle;
        SettingsPopup.OnVibrationChanged += OnVibrationToggle;
                // Privacy is automatically calling the GDPR privacy settings
        //SettingsPopup.OnPrivacyClicked += OnPrivacyClicked;
}

Social


using HomaGames.Social;

private void Start()
{
                // Show the Popup
                HomaGangPopup.Open();
                // Hide the Popup
                //HomaGangPopup.Close();
}