コード例 #1
0
    void OnClickGuanKaItem(GameObject obj)
    {
        GuanKa gk = GetCurrentGuanKa();

        if (gk != null)
        {
            _iCtrl.ShowGuanKaDetail(gk);
        }
    }
コード例 #2
0
    public override void StartView(params object[] args)
    {
        _iCtrl   = (UIBattleViewCtrl)iCtrl;
        m_GuanKa = (GuanKa)args[0];

        InitCenterUI();
        InitBullet();

        InitMusic();
    }
コード例 #3
0
    public override void StartView(params object[] args)
    {
        _iCtrl = (UIGuanKaDetailViewCtrl)iCtrl;

        InitTopUI();
        InitCenterUI();

        InitNavi();

        m_GuanKa       = (GuanKa)args[0];
        m_GuanKa.level = GuanKaLevel.Easy;
    }
コード例 #4
0
    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);
            }
        }
    }
コード例 #5
0
    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);
    }
コード例 #6
0
 public void ShowBattleView(GuanKa guanKa)
 {
     CtrlManager.Instance.OpenCtrl(CtrlNames.UIBattle, guanKa);
 }
コード例 #7
0
 public void ShowGuanKaDetail(GuanKa guanKa)
 {
     CtrlManager.Instance.OpenCtrl(CtrlNames.UIGuanKaDetail, guanKa);
     CtrlManager.Instance.CloseCtrl(CtrlNames.UIGuanKaMenu);
 }