public static void OnDestroy(IUseable self) { MonoBehaviour monoBehaviour = self as MonoBehaviour; if (monoBehaviour) { UseableUtility.OnDestroy(self, monoBehaviour.GetComponent <Useable>()); } }
protected void OnDestroy() { UseableUtility.OnDestroy(this, this._useable); }