Esempio n. 1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag(TagManager.GetTagName(TagManager.Tag.PlayerDark)) || collision.CompareTag(TagManager.GetTagName(TagManager.Tag.PlayerLight)))
     {
         SaveDataManager.Instance.TutorialPassed = true;
         SceneLoader.Instance.LoadScene(_mainMenuName);
     }
 }
Esempio n. 2
0
 protected override void Awake()
 {
     base.Awake();
     _playerLight             = GameObject.FindGameObjectWithTag(TagManager.GetTagName(TagManager.Tag.PlayerLight));
     _obstacleCreationMethods = new ObstacleCreationMethod[] { CreateBlackAndWhiteObstacle, CreateDoubleSpikeObstacle, CreateSingleSpikeObstacle };
 }