コード例 #1
0
 public bool FillBundleInfo(AudioClip audioClip)
 {
     if (audioClip == null)
     {
         return(false);
     }
     this.m_assetPathOfAudioClip = this.GetAssetPathOfAudioClip(audioClip);
     this.m_assetBundleName      = TsAudioBundleInfo._MakeAssetBundleName(this.m_assetPathOfAudioClip);
     this.m_audioClipName        = audioClip.name;
     return(true);
 }
コード例 #2
0
 public AudioClip LoadAssetAtPath()
 {
     if (!Application.isEditor)
     {
         TsLog.LogError("Cannot use this Function~! only EditorMode~!", new object[0]);
         return(null);
     }
     if (TsAudioBundleInfo.EventLoadAssetAtPath == null)
     {
         return(null);
     }
     return(TsAudioBundleInfo.EventLoadAssetAtPath(this.m_assetPathOfAudioClip));
 }