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

        if (monoBehaviour)
        {
            UseableUtility.OnDestroy(self, monoBehaviour.GetComponent <Useable>());
        }
    }
コード例 #2
0
 protected void OnDestroy()
 {
     UseableUtility.OnDestroy(this, this._useable);
 }