void Awake()
  {
    __sndbnk = this.gameObject.GetComponent<SoundBank>();

    if (desiredSoundBank == string.Empty)
    {
      Debug.LogError("Soundbank's empty, yo. Ya mean to do that?");
    }
    else
    {
      __sndbnk.LoadUp(desiredSoundBank);
    }
  }
Example #2
0
    void Awake()
    {
        __sndbnk = this.gameObject.GetComponent <SoundBank>();

        if (desiredSoundBank == string.Empty)
        {
            Debug.LogError("Soundbank's empty, yo. Ya mean to do that?");
        }
        else
        {
            __sndbnk.LoadUp(desiredSoundBank);
        }
    }