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
{
public int MaxManagedObjects = 1024;
void Awake()
{
DontDestroyOnLoad(gameObject);
Bindings.Open(MaxManagedObjects);
}
void OnApplicationQuit()
{
Bindings.Close();
}
}
}