public void Reset() { _instances = UnityEngine.Object.FindObjectsOfType<Wiring.Patch>(); }
void OnUndo() { // We have to rescan patches and nodes, // because there may be an unknown ones. _patchManager.Reset(); if (_patch != null && _patch.isValid) { _patch.Rescan(); } // Manually update the GUI. Repaint(); }