public void OnDisable() { if (this == instance) { instance = null; } }
public void OnEnable() { if (instance != null) { throw(new System.Exception("Error: Cannot create more than one instance of RiftToolRing!")); } instance = this; setAvailableTools(null); }