Exemplo n.º 1
0
    public void HandleAudioMoved()
    {
        if (_progres != OnboardingStep.MoveAudioBubble)
        {
            return;
        }

        _progres = OnboardingStep.Completed;
        ChangeClip(_moveAudioBubble);

        _audioSource.PlayOneShot(_stepCompleteClip);
    }
Exemplo n.º 2
0
    public void HandleSphereSeleted()
    {
        if (_progres != OnboardingStep.SelectSphere)
        {
            return;
        }

        _progres = OnboardingStep.RecordAudio;
        ChangeClip(_speachRecording);

        _audioSource.PlayOneShot(_stepCompleteClip);

        Destroy(_openSphere, 5);
    }
Exemplo n.º 3
0
    public void HandeAudioRecorded()
    {
        if (_progres != OnboardingStep.RecordAudio)
        {
            return;
        }

        _progres = OnboardingStep.Completed;
        //ChangeClip(_moveAudioBubble);


        _audioSource.Stop();
        _audioSource.PlayOneShot(_stepCompleteClip);
        Invoke(nameof(InvokeCompleted), 5f);
    }
Exemplo n.º 4
0
    public void HandleTeleported()
    {
        if (_progres != OnboardingStep.Teleport)
        {
            return;
        }

        _progres = OnboardingStep.SelectSphere;
        ChangeClip(_sphereSelect);

        _audioSource.PlayOneShot(_stepCompleteClip);

        var newPos = (Camera.main.transform.forward * 5);

        newPos.y = Camera.main.transform.position.y;
        _closedSphere.transform.position = newPos;
        _closedSphere.transform.LookAt(Camera.main.transform.position);
        _openSphere.transform.rotation = _closedSphere.transform.rotation;

        _closedSphere.SetActive(true);
    }
Exemplo n.º 5
0
        private async Task <OnboardingStep> GetOnboardingStep(Organization organization, Member member, OnboardingStep step)
        {
            var existingIssue = await _client.Issue.Get(organization.Name, Constants.RepositoryName, step.IssueNumber);

            var newIssue = new NewIssue(step.Name)
            {
                Body = existingIssue.Body,
            };

            newIssue.Assignees.Add(member.Name);

            var issue = await _client.Issue.Create(
                organization.Name,
                Constants.RepositoryName,
                newIssue);

            return(new OnboardingStep
            {
                Id = issue.Id,
                IsClosed = step.IsClosed,
                IssueNumber = issue.Number,
                Name = step.Name,
                OnboardingPipeline = step.OnboardingPipeline,
            });
        }