コード例 #1
0
 private void ShowJourney()
 {
     if (curShow != CurShow.Journey)
     {
         quitView.Hide();
         gameList.HideGameIcons(null);
         gameInfo.Hide(null);
         curShow = CurShow.Journey;
         journeyListView.ShowGameIcons(null);
     }
 }
コード例 #2
0
    private void ShowQuit()
    {
        // if (curShow != CurShow.Quit)
        {
            journeyListView.HideGameIcons(null);

            gameList.HideGameIcons(() =>
            {
            });

            gameInfo.Hide(() =>
            {
            });

            curShow = CurShow.Quit;
            quitView.Show();
        }
    }
コード例 #3
0
    private void ShowGame()
    {
        journeyListView.HideGameIcons(null);

        quitView.Hide();

        if (curShow != CurShow.GameList && curShow == CurShow.GameInfo)
        {
            gameInfo.Hide(() =>
            {
                curShow = CurShow.GameList;
                gameList.ShowGameIcons(null);
            });
        }
        else
        {
            curShow = CurShow.GameList;
            gameList.ShowGameIcons(null);
        }
    }
コード例 #4
0
    private void ShowGameInfo(string obj)
    {
        journeyListView.HideGameIcons(null);

        quitView.Hide();

        if (curShow != CurShow.GameInfo && curShow == CurShow.GameList)
        {
            gameList.HideGameIcons(() =>
            {
                curShow = CurShow.GameInfo;
                gameInfo.Show(obj);
            });
        }
        else
        {
            curShow = CurShow.GameInfo;
            gameInfo.Show(obj);
        }
    }
コード例 #5
0
    protected void Awake()
    {
        Debug.Log("BlackHoleView  Loaded add view.");
        Cursor.visible        = false;
        curShow               = CurShow.Menu;
        menu                  = transform.FindChild("Menu").gameObject.GetComponentForce <MenuView>();
        menu.ShowGameEvent    = ShowGame;
        menu.ShowJourneyEvent = ShowJourney;
        menu.ShowMovieEvent   = ShowMovie;
        menu.ShowQuitEvent    = ShowQuit;

        gameList = transform.FindChild("GameList").gameObject.GetComponentForce <GameListView>();
        gameList.ShowGameInfo = ShowGameInfo;

        gameInfo = transform.FindChild("GameInfo").gameObject.GetComponentForce <GameInfoView>();
        gameInfo.BackToGameListEvent = ShowGame;

        quitView        = transform.FindChild("QuitPanel").gameObject.GetComponentForce <QuitView>();
        journeyListView = transform.FindChild("JourneyList").gameObject.GetComponentForce <JourneyListView>();

        this.gameObject.AddComponent <StarSkyView>();
        RecordMgr   recordMgr = RecordMgr.Inst;
        PlayTimeMgr playTime  = PlayTimeMgr.Inst;
    }