public GameObject Instantiate(Vector3 position, Quaternion rotation, bool autoUnload)
        {
            GameObject go = Instantiate(position, rotation);

            if (autoUnload && go)
            {
                AutoUnload temp = go.AddComponent <AutoUnload>();
                temp.resource = this;
            }

            return(go);
        }
        public GameObject Instantiate(Transform parent, bool instantiateInWorldSpace, bool autoUnload)
        {
            GameObject go = Instantiate(parent, instantiateInWorldSpace);

            if (autoUnload && go)
            {
                AutoUnload temp = go.AddComponent <AutoUnload>();
                temp.resource = this;
            }

            return(go);
        }
        public GameObject Instantiate(bool autoUnload)
        {
            GameObject go = Instantiate();

            if (autoUnload && go)
            {
                AutoUnload temp = go.AddComponent <AutoUnload>();
                temp.resource = this;
            }

            return(go);
        }