< Summary

Class:DCL.Tutorial.TutorialStep_AvatarJumping
Assembly:Onboarding
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Tutorial/Scripts/Steps/Initial/TutorialStep_AvatarJumping.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:26
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
OnStepStart()0%2100%
OnStepExecute()0%12300%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Tutorial/Scripts/Steps/Initial/TutorialStep_AvatarJumping.cs

#LineLine coverage
 1using System.Collections;
 2using UnityEngine;
 3
 4namespace DCL.Tutorial
 5{
 6    /// <summary>
 7    /// Class that represents the onboarding tutorial step related to how to jump with the avatar.
 8    /// </summary>
 9    public class TutorialStep_AvatarJumping : TutorialStep
 10    {
 11        [SerializeField] AudioEvent audioEventSuccess;
 12        [SerializeField] internal InputAction_Hold jumpingInputAction;
 13
 14        public override void OnStepStart()
 15        {
 016            base.OnStepStart();
 017            jumpingInputAction.RaiseOnFinished();
 018        }
 19
 20        public override IEnumerator OnStepExecute()
 21        {
 022            yield return new WaitUntil(() => mainSection.activeSelf && jumpingInputAction.isOn);
 023            audioEventSuccess.Play(true);
 024        }
 25    }
 26}

Methods/Properties

OnStepStart()
OnStepExecute()