Example #1
0
 public IEnumerator Init()
 {
     mCheePonGameView = YarLiongFactory.GetGameView(GameType.Gomoku) as ICheePonGameView;
     mGomokuCheePon   = new GomokuCheePon(15, 15);
     mCheePonGameView.SetListener(this);
     yield return(mCheePonGameView.Init());
 }
Example #2
0
    public override IEnumerator Init()
    {
        var gameType = YarLiongFactory.MainGameModel.CurrentGameType;

        mGameController = YarLiongFactory.GetGameController(gameType);
        mGameController.SetGameEndListener(this);
        yield return(StartCoroutine(mGameController.Init()));

        mGameSettingView = YarLiongFactory.GetGameSettingView();
        mGameSettingView.SetListener(this);
        yield return(StartCoroutine(mGameSettingView.Init()));

        mGameSettingView.Show();
        mGameSettingView.ShowGameStartView();
    }
Example #3
0
    IEnumerator Start()
    {
        DontDestroyOnLoad(this.gameObject);
        mLoadingView = YarLiongFactory.GetLoadingView();
        mModel       = YarLiongFactory.MainGameModel;

        if (mLoadingView != null)
        {
            yield return(StartCoroutine(mLoadingView.Init()));
        }

        if (mSceneController != null)
        {
            yield return(StartCoroutine(mSceneController.Init()));
        }
    }
    public override IEnumerator Init()
    {
        mMainSceneView = YarLiongFactory.GetMainSceneView();
        mMainSceneView.SetListener(this);
        if (mMainSceneView != null)
        {
            yield return(StartCoroutine(mMainSceneView.Init()));
        }

        mCheePonView = YarLiongFactory.GetCheePonView();
        mCheePonView.SetListener(this);
        if (mCheePonView != null)
        {
            yield return(StartCoroutine(mCheePonView.Init()));
        }

        mGaoZhiView = YarLiongFactory.GetGaoZhiView();
        mGaoZhiView.SetListener(this);
        if (mGaoZhiView != null)
        {
            yield return(StartCoroutine(mGaoZhiView.Init()));
        }

        mLuDouGaoView = YarLiongFactory.GetLuDouGaoView();
        mLuDouGaoView.SetListener(this);
        if (mLuDouGaoView != null)
        {
            yield return(StartCoroutine(mLuDouGaoView.Init()));
        }

        mGaoZhiView?.Hide();
        mCheePonView?.Hide();
        mLuDouGaoView?.Hide();
        mMainSceneView?.Show();

        yield return(null);
    }
Example #5
0
 public IEnumerator Init()
 {
     mSnakeGameView = YarLiongFactory.GetGameView(GameType.Snake) as ISnakeGameView;
     mSnakeGameView.SetListener(this);
     yield return(mSnakeGameView.Init());
 }