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);
    }
  }
Exemplo n.º 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);
        }
    }