Exemplo n.º 1
0
        private void HandleSubmit()
        {
            variableManager.SetVariableValue(variableName, inputField.text);

            if (playOnSubmit)
            {
                // Attempt to select and play next command.
                var nextIndex = scriptPlayer.PlayedIndex + 1;
                scriptPlayer.Play(nextIndex);
            }

            Hide();
        }
Exemplo n.º 2
0
        private void Update()
        {
            if (!show)
            {
                return;
            }

            if (Input.GetKeyDown(PreviousKey))
            {
                player.RewindToPreviousCommandAsync(resumePlayback: false).WrapAsync();
            }
            if (Input.GetKeyDown(NextKey))
            {
                player.RewindToNextCommandAsync(resumePlayback: false).WrapAsync();
            }
            if (Input.GetKeyDown(PlayKey))
            {
                player.Play();
            }
            if (Input.GetKeyDown(StopKey))
            {
                player.Stop();
            }
        }
        private async void QuickLoadAsync()
        {
            await gameState.QuickLoadAsync();

            player.Play();
        }