/// <summary> /// Returns the dialogue background from the given properties. /// </summary> /// <param name="bgIdArg"></param> /// <param name="isHContentArg"></param> /// <returns></returns> private Sprite GetDialogueBackground(string bgIdArg, bool isHContentArg) { // if bg is H-content if (isHContentArg) { // load ERO background sprite based on given ID return(AssetRefMethods.LoadHcontentBackground(bgIdArg)); } // else bg is all-ages content else { // load NORMAL background sprite based on given ID return(AssetRefMethods.LoadBundleAssetDialogueBackground(bgIdArg)); } }