diff --git a/Runtime/Agents/AbstractAgent.cs b/Runtime/Agents/AbstractAgent.cs index 276cc08..a7ca82f 100644 --- a/Runtime/Agents/AbstractAgent.cs +++ b/Runtime/Agents/AbstractAgent.cs @@ -23,12 +23,12 @@ public abstract class AbstractAgent : ScriptableObject /// /// Logger instance used by this agent /// - public ILogger Logger { get; internal set; } + public ILogger Logger { get; set; } /// /// Random instance used by this agent /// - public virtual IRandom Random { get; internal set; } + public virtual IRandom Random { get; set; } /// /// Run agent diff --git a/Runtime/Agents/AbstractCompositeAgent.cs b/Runtime/Agents/AbstractCompositeAgent.cs index 44c2cfc..20af54a 100644 --- a/Runtime/Agents/AbstractCompositeAgent.cs +++ b/Runtime/Agents/AbstractCompositeAgent.cs @@ -25,7 +25,7 @@ public abstract class AbstractCompositeAgent : AbstractAgent /// public override IRandom Random { - internal set + set { base.Random = value; RandomFactory = new RandomFactory(base.Random.Next());