Well, title says it all. I have a class called WolfAI that inherits from a class called EnemyBehaviour.
EnemyBehaviour has a DetectionRange property.
When I mapped a SharedVariable in my BehaviourTree to the DetectionRange property it's always zero.
It's weird because when I try my WolfAI class it doesn't work... but if I use my EnemyBehaviour class instead... it works normally.
I recently update Behaviour Designer from 1.6.5 from I think it was 1.6.2. I didn't delete my Behaviour Designer when updating. Is it possible this is the cause?
EnemyBehaviour has a DetectionRange property.
Code:
public class EnemyBehaviour : MonoBehaviour, IKnockback
{
[TitleGroup("ENEMY")]
[FoldoutGroup("ENEMY/Detection")]
public bool _showRangeGizmo = false;
[FoldoutGroup("ENEMY/Detection")]
public float _detectionRange = 67.0f;
public float DetectionRange { get { return _detectionRange; } }
...
}
When I mapped a SharedVariable in my BehaviourTree to the DetectionRange property it's always zero.
It's weird because when I try my WolfAI class it doesn't work... but if I use my EnemyBehaviour class instead... it works normally.
I recently update Behaviour Designer from 1.6.5 from I think it was 1.6.2. I didn't delete my Behaviour Designer when updating. Is it possible this is the cause?