Skip to content

Commit edf32a2

Browse files
committed
feat(Transformation): replace isActiveAndEnabled
The isActiveAndEnabled call has been replaced with CheckIsActiveAndEnabled as this is more consistent.
1 parent 812bc68 commit edf32a2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Runtime/SharedResources/Scripts/Transformation/Conversion/InputActionPropertyTransformer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ namespace Tilia.Input.UnityInputSystem.Transformation.Conversion
44
#if ENABLE_INPUT_SYSTEM
55
using UnityEngine.Events;
66
using UnityEngine.InputSystem;
7+
using Zinnia.Extension;
78

89
/// <summary>
910
/// Provides an abstract base to transform a given <see cref="InputAction"/> to the <see cref="TOutput"/> data type.
@@ -31,7 +32,7 @@ public InputActionProperty Source
3132
UnbindActions();
3233
}
3334
source = value;
34-
if (Application.isPlaying && isActiveAndEnabled)
35+
if (Application.isPlaying && this.CheckIsActiveAndEnabled())
3536
{
3637
BindActions();
3738
}

0 commit comments

Comments
 (0)