refactor: IBehaviourController.TryGetBehaviour to Extension Method
This commit is contained in:
@@ -74,12 +74,6 @@ public class BehaviourController : IBehaviourController
|
||||
return default;
|
||||
}
|
||||
|
||||
public bool TryGetBehaviour<T>([NotNullWhen(returnValue: true)] out T? behaviour)
|
||||
{
|
||||
behaviour = GetBehaviour<T>();
|
||||
return behaviour is not null;
|
||||
}
|
||||
|
||||
public IList<T> GetBehaviours<T>()
|
||||
{
|
||||
List<T>? behaviours = null;
|
||||
|
Reference in New Issue
Block a user