Skip to content

salusgames/mobile-framework

Repository files navigation

Mobile Framework

This package simplifies common used packages and systems used in mobile games

Installation

To install simply add https://github.com/salusgames/mobile-framework.git to the package manager in Unity

Unity Ads

Note: This package writes a json file to enable or disable ads in the Application.persistentDataPath folder on the user device. User's with technical know how might be able to disable ads by editing this json file. This doesn't bother me as power to them for the effort but may bother you if you use this package.

Setup

Add the UnityAdsManager.cs script to a gameobject in the first loaded scene in the project and fill in the relevent ID's in the inspector.

Showing an intersistial ad

To show an interstitial advert include using SalusGames.MobileFramework.Advertisements.Unity; at the top of your script and use UnityAdsManager.ShowInterstitialAd(float waitTime); to show the advert and wait for the duration of waitTime before showing another interstitial advert

Disabling/Enabling Ads

You can disable & enable the showing of ads by changing the UnityAdsManager.AdsDisabled property. This is set to false by default

App Tracking Transparency for iOS 14+

This package includes a post build script to add the needed values in the info.plist file in Xcode.

Store Reviews

Include using SalusGames.MobileFramework.Review; at the top of your script and use StoreReview.Request(); to prompt for a review.

About

This Unity package simplifies common used packages and systems used in mobile games

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages