//Init the API Hooks internal static void APIAwake() { //set up the hookable object fetch = HaystackResourceLoader.Instance; //set up any events we need from the core code //flag it ready APIReady = true; }
private void APIDestroy() { //tear it down fetch = null; //Tear down any events we need to remove //try { //} catch (Exception) { } APIReady = false; }