public static void OnDestroy(IUseable self) { MonoBehaviour monoBehaviour = self as MonoBehaviour; if (monoBehaviour) { UseableUtility.OnDestroy(self, monoBehaviour.GetComponent <Useable>()); } }
public static bool Succeeded(this UseResponse response) { bool flag = (int)response >= 0; if (!flag) { UseableUtility.LogWarning <string>(string.Concat("Did not succeed ", response)); } return(flag); }
protected void OnDestroy() { UseableUtility.OnDestroy(this, this._useable); }