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