public void Initialize(PortManager portManager, int deckId, Camera overlayCamera) { mPortManager = portManager; mOverlayCamera = overlayCamera; mDeckId = deckId; mConfiguredBGM = (BGMFileInfos)mPortManager.UserInfo.GetPortBGMId(deckId); mContext = new Context(); mDefaultVolume = SingletonMonoBehaviour <SoundManager> .Instance.bgmSource.volume; mStateManager = new StateManager <State>(State.NONE); mStateManager.OnPush = OnPushState; mStateManager.OnPop = OnPopState; mStateManager.OnResume = OnResumeState; mUIJukeBoxPlayListParent.Initialize(mPortManager, mPortManager.GetJukeboxList().ToArray(), mOverlayCamera); mUIJukeBoxPlayListParent.StartState(); }
private void OnPushMusicSelectState() { mUIJukeBoxPlayListParent.Refresh(mPortManager, mPortManager.GetJukeboxList().ToArray(), mOverlayCamera); mUIJukeBoxPlayListParent.SetKeyController(mKeyController); mUIJukeBoxPlayListParent.StartState(); }