fix: GetBehaviourInParent not working properly
This commit is contained in:
parent
04d325f38b
commit
98c9dde98a
@ -54,7 +54,7 @@ public static class BehaviourControllerExtensions
|
||||
|
||||
while (controller is not null)
|
||||
{
|
||||
if (behaviourController.GetBehaviour<T>() is T behaviour)
|
||||
if (controller.GetBehaviour<T>() is T behaviour)
|
||||
return behaviour;
|
||||
|
||||
controller = controller.HierarchyObject.Parent?.BehaviourController;
|
||||
|
Loading…
x
Reference in New Issue
Block a user