Esempio n. 1
0
    public void Enter()
    {
        tetrisController = MonoBehaviour.FindObjectOfType <TetrisController>();
        gameUIController = MonoBehaviour.FindObjectOfType <InGameUIController>();

        tetrisController.Init();
        gameUIController.Init(StoreManager.Instance);

        tetrisController.OnFinished = () =>
        {
            // TODO: データの保存
            SceneManager.LoadScene("Result");
        };

        // シーン遷移後にステートを変更
        SceneManager.activeSceneChanged += OnSceneChanged;

        gameUIController.OnPaused = () =>
        {
        };

        gameUIController.OnInGamed = () =>
        {
        };

        gameUIController.OnTitled = () =>
        {
        };
    }
Esempio n. 2
0
 private void Start()
 {
     model.Init();
     view.Init();
     controller.Init();
 }