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); }
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; } }
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); }
public float GetVolume() { float result = this.volume; FageAudioBase p = parent; while (p != null) { result *= p.volume; p = p.parent; } return(result); }
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; }