Inheritance: MonoBehaviour
Exemple #1
0
 void Awake()
 {
     if(instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this);
     }
 }
    static void Init()
    {
        DetectLeaks window = (DetectLeaks)EditorWindow.GetWindow(typeof(DetectLeaks));

        window.Show();
    }