コード例 #1
0
    private void LoadHub()
    {
        if (mainCanvas.GetBlackgroundAlpha() == 1)
        {
            TeleportPlayerToHub();
            CameraFollowPlayer.InvertCamera();
            PlayerMovement.InvertControls();
            gameController.GetComponents <AudioSource>()[0].Stop();
            player.GetComponent <PlayerMovement>().rotation = new Vector3(0, 0, 0);

            camera.GetComponent <PostProcessingBehaviour>().profile = _townPostProcessing;

            _loadingHub = false;
        }
    }
コード例 #2
0
    private void LoadLevel()
    {
        if (mainCanvas.GetBlackgroundAlpha() == 1)
        {
            levelGenerator.GenerateFullDungeonLevel(16, 16);
            BakeNavMesh();
            CameraFollowPlayer.InvertCamera();
            PlayerMovement.InvertControls();
            gameController.GetComponents <AudioSource>()[1].Stop();

            camera.GetComponent <PostProcessingBehaviour>().profile = _forestPostProcessing;

            _loadingLevel = false;
        }
    }