public static void TriggerBuildIfWaiting(string pathToBuiltProject)
    {
        if(instance == null)
            return;

        instance.preferences.teamPrefs.buildPath = pathToBuiltProject;
        instance.StartBuild();
        instance.Close();
        instance = null;
    }
 public void OnEnable()
 {
     instance = this;
 }
 public void OnDisable()
 {
     instance = null;
 }