public void Destroy() { removeAllChildren(); unparent(behaviour); ScriptableObject.DestroyImmediate(behaviour, true); if (_inputKnob != null) { _inputKnob.OnDestroy(); } }
public void Destroy() { removeAllChildren(); unparent(behaviour); ScriptableObject.DestroyImmediate(behaviour, true); if (_inputKnob != null) { _inputKnob.OnDestroy(); } }