using UnityEngine; namespace NativeScript { /// /// Script to run at app startup that initializes and runs the native plugin /// /// /// Jackson Dunstan, 2017, http://JacksonDunstan.com /// /// /// MIT /// class BootScript : MonoBehaviour { void Awake() { DontDestroyOnLoad(gameObject); Bindings.Open(); } void OnApplicationQuit() { Bindings.Close(); } } }