コード例 #1
0
    public static void OnDestroy(IUseable self)
    {
        MonoBehaviour monoBehaviour = self as MonoBehaviour;

        if (monoBehaviour)
        {
            UseableUtility.OnDestroy(self, monoBehaviour.GetComponent <Useable>());
        }
    }
コード例 #2
0
    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);
    }
コード例 #3
0
 protected void OnDestroy()
 {
     UseableUtility.OnDestroy(this, this._useable);
 }