예제 #1
0
 public void Hashing(FageAudioBase parent = null)
 {
     int length = children.Length;
     for (int i = 0 ; i < length ; i++) {
         children[i].Hashing(this);
     }
     this.parent = parent;
     FageAudioRoot.Instance.Resister (this);
 }
예제 #2
0
 public void Resister(FageAudioBase audioBase)
 {
     if (_dictionary.ContainsKey(audioBase.id))
     {
         throw new UnityException("duplicated id : " + audioBase.id);
     }
     else if (audioBase is FageAudioXML)
     {
         _dictionary [audioBase.id] = audioBase as FageAudioXML;
     }
 }
예제 #3
0
    public void Hashing(FageAudioBase parent = null)
    {
        int length = children.Length;

        for (int i = 0; i < length; i++)
        {
            children[i].Hashing(this);
        }
        this.parent = parent;
        FageAudioRoot.Instance.Resister(this);
    }
예제 #4
0
    public float GetVolume()
    {
        float         result = this.volume;
        FageAudioBase p      = parent;

        while (p != null)
        {
            result *= p.volume;
            p       = p.parent;
        }
        return(result);
    }
예제 #5
0
 public void Resister(FageAudioBase audioBase)
 {
     if (_dictionary.ContainsKey (audioBase.id))
         throw new UnityException ("duplicated id : " + audioBase.id);
     else if (audioBase is FageAudioXML)
         _dictionary [audioBase.id] = audioBase as FageAudioXML;
 }