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 = () => { }; }
private void Start() { model.Init(); view.Init(); controller.Init(); }