Example #1
0
    public void PlayClip()
    {
        DeveloperCommentaryPlayer dcp = DeveloperCommentaryPlayer.Instance;

        if (dcp != null && audioClip != null)
        {
            dcp.PlayAudio(audioClip, volume);
        }
    }
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("Cannot have multiple instances of DeveloperCommentaryPlayer.");
         Destroy(this);
         return;
     }
     instance = this;
 }