diff --git a/Engine.Core/Abstract/IBehaviourController.cs b/Engine.Core/Abstract/IBehaviourController.cs index 64fa28e..17e7e57 100644 --- a/Engine.Core/Abstract/IBehaviourController.cs +++ b/Engine.Core/Abstract/IBehaviourController.cs @@ -60,7 +60,7 @@ public interface IBehaviourController : IInitializable, IHasHierarchyObject, IEn /// /// The type of s to get. /// A list of s of the specified type. - IList GetBehaviours(); + IReadOnlyList GetBehaviours(); /// /// Gets all s of the specified type and stores them in the provided list. diff --git a/Engine.Core/BehaviourController.cs b/Engine.Core/BehaviourController.cs index 3a9615e..0d80b1d 100644 --- a/Engine.Core/BehaviourController.cs +++ b/Engine.Core/BehaviourController.cs @@ -72,7 +72,7 @@ public class BehaviourController : IBehaviourController return default; } - public IList GetBehaviours() + public IReadOnlyList GetBehaviours() { List? behaviours = null; foreach (IBehaviour behaviourItem in this.behaviours)