Exemple #1
0
 protected override void OnStart()
 {
     base.OnStart();
     _gameManager.characterLeft.enabled  = false;
     _gameManager.characterRight.enabled = false;
     LevelIntro.gameObject.SetActive(true);
     LevelIntro.StartIntro("My father and my mother worked all day long. \nI spent a lot of time alone after school.", () => {
         _gameManager.characterLeft.enabled  = true;
         _gameManager.characterRight.enabled = true;
         GridManager.InsertItemIn(rat);
         GridManager.InsertItemIn(cupboard_left);
         GridManager.InsertItemIn(cupboard_left_block);
         GridManager.InsertItemIn(cupboard_right_1);
         GridManager.InsertItemIn(cupboard_right_2);
         GridManager.InsertItemIn(cupboard_right_3);
         GridManager.InsertItemIn(cupboard_right_4);
         GridManager.InsertItemIn(cookies);
         GridManager.InsertItemIn(note);
         GridManager.InsertItemIn(phone_right);
         GridManager.InsertItemIn(phone_left);
         GridManager.InsertItemIn(door_left);
         GridManager.InsertItemIn(door_right);
         AudioManager.Instance.OnResumeMusic();
     });
 }
Exemple #2
0
        protected override void OnStart()
        {
            base.OnStart();
            _gameManager.characterLeft.enabled  = false;
            _gameManager.characterRight.enabled = false;
            LevelIntro.gameObject.SetActive(true);
            LevelIntro.StartIntro("But perhaps there was one place where I didn't feel so lonely...", () => {
                _gameManager.characterLeft.enabled  = true;
                _gameManager.characterRight.enabled = true;
                GridManager.InsertItemIn(chest_left);
                GridManager.InsertItemIn(drawer_left);
                GridManager.InsertItemIn(car1_left);
                GridManager.InsertItemIn(car2_left);
                GridManager.InsertItemIn(library_left);
                GridManager.InsertItemIn(LibraryLeftBlock);
                GridManager.InsertItemIn(tv_left);

                GridManager.InsertItemIn(chest_right);
                GridManager.InsertItemIn(drawer_right);
                GridManager.InsertItemIn(car1_right);
                GridManager.InsertItemIn(car2_right);
                GridManager.InsertItemIn(library_right);
                GridManager.InsertItemIn(LibraryRightBlock);
                GridManager.InsertItemIn(tv_right);

                GridManager.InsertItemIn(key_right);
                GridManager.InsertItemIn(console_right);

                GridManager.InsertItemIn(TvBlockLeft);
                GridManager.InsertItemIn(TvBlockRight);

                floors.ForEach(GridManager.InsertItemIn);
                AudioManager.Instance.OnResumeMusic();
            });
        }