public override void Init() { base.Init(); m_soundRoot = new GameObject("SoundManager"); GameObject go = GameObject.Find("BootObj"); if (go != null) { m_soundRoot.transform.parent = go.transform; } GameObject bgmObj = new GameObject(); bgmObj.name = "SoundBGM"; bgmObj.transform.parent = m_soundRoot.transform; bgmSound = bgmObj.AddComponent <SoundBGM>(); GameObject otherObj = new GameObject(); otherObj.name = "SoundOther"; otherObj.transform.parent = m_soundRoot.transform; otherSound = otherObj.AddComponent <SoundOther>(); }
///////////////////////////////////////////////////////////// // public public ClockStone.AudioObject PlayBGM(SoundBGM bgm) { return(this.PlayBGM(bgm.ToString())); }