Ejemplo n.º 1
0
    public static ResourceLoad GetResourceLoad(MonoBehaviour mono_behaviour, bool destroy_notify = false)
    {
        //IL_0001: Unknown result type (might be due to invalid IL or missing references)
        //IL_0019: Unknown result type (might be due to invalid IL or missing references)
        ResourceLoad resourceLoad = mono_behaviour.get_gameObject().GetComponent <ResourceLoad>();

        if (resourceLoad == null)
        {
            resourceLoad = mono_behaviour.get_gameObject().AddComponent <ResourceLoad>();
            resourceLoad.SetNotifyMaster(MonoBehaviourSingleton <ResourceManager> .I);
            resourceLoad.destroyNotify = destroy_notify;
        }
        return(resourceLoad);
    }