예제 #1
0
 public Sprite GetSprite(string BaseURL, string key)
 {
     LugusResources.LogResourceLoad(BaseURL + "Sprites/" + key);
     return(Resources.Load(BaseURL + "Sprites/" + key, typeof(Sprite)) as Sprite);
 }
예제 #2
0
    /*
     * public AudioClip GetAudio(string key)
     * {
     *      return GetAudio (this.BaseURL, key);
     * }
     */

    public AudioClip GetAudio(string BaseURL, string key)
    {
        LugusResources.LogResourceLoad(BaseURL + "Audio/" + key);
        return(Resources.Load(BaseURL + "Audio/" + key, typeof(AudioClip)) as AudioClip);
    }
예제 #3
0
    /*
     * public TextAsset GetText(string key)
     * {
     *      return GetText (this.BaseURL, key);
     * }
     */

    public TextAsset GetText(string BaseURL, string key)
    {
        LugusResources.LogResourceLoad(BaseURL + "Text/" + key);
        return(Resources.Load(BaseURL + "Text/" + key, typeof(TextAsset)) as TextAsset);
    }
예제 #4
0
    /*
     * [SerializeField]
     * protected string _baseURL = "";
     * public string BaseURL
     * {
     *      get{ return _baseURL; }
     *      set{ _baseURL = value; }
     * }
     */
    /*
     * public Texture2D GetTexture(string key)
     * {
     *      return GetTexture (this.BaseURL, key);
     * }
     */

    public Texture2D GetTexture(string BaseURL, string key)
    {
        LugusResources.LogResourceLoad(BaseURL + "Textures/" + key);
        return(Resources.Load(BaseURL + "Textures/" + key, typeof(Texture2D)) as Texture2D);
    }