Exemple #1
0
        private void OnDisable()
        {
            instance = null;

            foreach (var task in tasks)
            {
                task.Cancel();
            }

            ConsoleProfiler.Dump();
        }
Exemple #2
0
 private void OnEnable()
 {
     instance = this;
 }