Exemplo 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);
     }
 }
Exemplo n.º 2
0
 protected override void Awake()
 {
     base.Awake();
     _playerLight             = GameObject.FindGameObjectWithTag(TagManager.GetTagName(TagManager.Tag.PlayerLight));
     _obstacleCreationMethods = new ObstacleCreationMethod[] { CreateBlackAndWhiteObstacle, CreateDoubleSpikeObstacle, CreateSingleSpikeObstacle };
 }