void OnDestroy() { if (myManager) { myManager.RemoveConnector(this); } }
public virtual void OnDestroy() { if (myManager) { myManager.RemoveConnector(this); } if (eventSystem.currentSelectedGameObject == gameObject) { eventSystem.SetSelectedGameObject(null); } }