void OnDestroy() { #if UNITY_EDITOR if (_fullBodyIK != null) { _fullBodyIK.Destroy(); } #endif }
protected virtual void OnDestroy() { if (_cache_fullBodyIK == null) { _cache_fullBodyIK = fullBodyIK; } if (_cache_fullBodyIK != null) { _cache_fullBodyIK.Destroy(); } }