void OnClickGuanKaItem(GameObject obj) { GuanKa gk = GetCurrentGuanKa(); if (gk != null) { _iCtrl.ShowGuanKaDetail(gk); } }
public override void StartView(params object[] args) { _iCtrl = (UIBattleViewCtrl)iCtrl; m_GuanKa = (GuanKa)args[0]; InitCenterUI(); InitBullet(); InitMusic(); }
public override void StartView(params object[] args) { _iCtrl = (UIGuanKaDetailViewCtrl)iCtrl; InitTopUI(); InitCenterUI(); InitNavi(); m_GuanKa = (GuanKa)args[0]; m_GuanKa.level = GuanKaLevel.Easy; }
void LoadSong() { GuanKa gk = GetCurrentGuanKa(); if (gk != null) { if (!SongManager.Instance.IsSongLoaded(gk.song)) { SongManager.Instance.LoadSong(gk.song, OnLoadSongProgress, OnLoadSongComplete); } else { OnLoadSongComplete(null, gk.song); } } }
public List <GuanKa> GetGuanKaList() { List <GuanKa> guanKaList = new List <GuanKa>(); List <Song> songList = SongManager.Instance.GetLocalSongList(); if (songList != null) { foreach (var song in songList) { GuanKa guanka = new GuanKa(); guanka.id = song.id; guanka.name = song.songTitle; guanka.song = song; guanKaList.Add(guanka); } } return(guanKaList); }
public void ShowBattleView(GuanKa guanKa) { CtrlManager.Instance.OpenCtrl(CtrlNames.UIBattle, guanKa); }
public void ShowGuanKaDetail(GuanKa guanKa) { CtrlManager.Instance.OpenCtrl(CtrlNames.UIGuanKaDetail, guanKa); CtrlManager.Instance.CloseCtrl(CtrlNames.UIGuanKaMenu); }