Пример #1
0
    public void Play(string audioName)
    {
        AudioSource tmpSource = sourceManager.GetFreeAudioSource();


        SingleClip tmpClip = clipManager.GetClips(audioName);


        if (tmpClip != null)
        {
            tmpClip.Play(tmpSource);
        }
        else
        {
            Debug.LogError("  you play  audio  is not  exit");
        }
    }