Пример #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         TheCubeGameManager.LoadNextLevel();
     }
 }
    private void Awake()
    {
        if (_S == null)
        {
            _S = this;
        }

        _finalLevel = SceneManager.sceneCountInBuildSettings - 1;
        print(_finalLevel);
    }