Skip to content

Instantly share code, notes, and snippets.

@AaronJessen
Created May 23, 2021 13:34
Show Gist options
  • Select an option

  • Save AaronJessen/a543f10f379ff07004360a09ef3f438e to your computer and use it in GitHub Desktop.

Select an option

Save AaronJessen/a543f10f379ff07004360a09ef3f438e to your computer and use it in GitHub Desktop.

Revisions

  1. AaronJessen created this gist May 23, 2021.
    6 changes: 6 additions & 0 deletions Static Domain Reload - Unity
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
    static void Init()
    {
    Debug.Log("Counter reset.");
    counter = 0;
    }