< Summary

Class:PlaceCardAnimator
Assembly:ExploreV2
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ExploreV2/Scripts/Sections/PlacesAndEventsSection/SubSections/PlacesSubSection/PlaceCard/PlaceCardAnimator.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:29
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Focus()0%110100%
Idle()0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ExploreV2/Scripts/Sections/PlacesAndEventsSection/SubSections/PlacesSubSection/PlaceCard/PlaceCardAnimator.cs

#LineLine coverage
 1using DG.Tweening;
 2using UnityEngine;
 3
 4public class PlaceCardAnimator : PlaceCardAnimatorBase
 5{
 6    private const float DURATION = 0.167f;
 7    [SerializeField] private CanvasGroup focusInfo;
 8    [SerializeField] private CanvasGroup idleInfo;
 9
 10    public override void Focus()
 11    {
 112        focusInfo.DOFade(1, DURATION)
 13                 .SetEase(Ease.InOutQuad)
 14                 .SetLink(focusInfo.gameObject, LinkBehaviour.KillOnDestroy);
 115        idleInfo.DOFade(0, DURATION)
 16                .SetEase(Ease.InOutQuad)
 17                .SetLink(idleInfo.gameObject, LinkBehaviour.KillOnDestroy);
 118    }
 19
 20    public override void Idle()
 21    {
 26422        focusInfo.DOFade(0, DURATION)
 23                 .SetEase(Ease.Linear)
 24                 .SetLink(focusInfo.gameObject, LinkBehaviour.KillOnDestroy);
 26425        idleInfo.DOFade(1, DURATION)
 26                .SetEase(Ease.Linear)
 27                .SetLink(idleInfo.gameObject, LinkBehaviour.KillOnDestroy);
 26428    }
 29}

Methods/Properties

Focus()
Idle()