Beispiel #1
0
    public void Destroy()
    {
        if (assetLoadOperation != null)
        {
            assetLoadOperation.Unload();
            assetLoadOperation = null;
        }

        if (gameObject != null)
        {
            Object.Destroy(gameObject);
            gameObject = null;
        }
    }