Skip to content

Instantly share code, notes, and snippets.

@Matthew-J-Spencer
Created May 5, 2022 22:26
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Matthew-J-Spencer/08d046f6a6a7bc1f0dd0b71bc4607ddc to your computer and use it in GitHub Desktop.
Save Matthew-J-Spencer/08d046f6a6a7bc1f0dd0b71bc4607ddc to your computer and use it in GitHub Desktop.
using UnityEngine;
public static class Bootstrapper {
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
public static void Execute() {
Object.DontDestroyOnLoad(Object.Instantiate(Resources.Load("Systems")));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment