Access Scriptable Objects from a Task in behavior tree

Hi,

I’ve added a Scriptable Object, float to my task called PlayerHealth.

In any MonoBehaviour I’d access it like -

float newHealth = PlayerHealth.value

But in my Task script I thought I’d access it like -

float newHealth = PlayerHealth.Value.value

But I get an error, what is the correct way to access a scriptable object shared float? Thanks.

Kevin.