< 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:6
Uncovered lines:0
Coverable lines:6
Total lines:26
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
OnStepStart()0%110100%
OnStepExecute()0%330100%

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        {
 116            base.OnStepStart();
 117            jumpingInputAction.RaiseOnFinished();
 118        }
 19
 20        public override IEnumerator OnStepExecute()
 21        {
 422            yield return new WaitUntil(() => mainSection.activeSelf && jumpingInputAction.isOn);
 123            audioEventSuccess.Play(true);
 124        }
 25    }
 26}

Methods/Properties

OnStepStart()
OnStepExecute()