From b8e2dbbbb2e2e570eecce74cd99be7f7cc5ef9f7 Mon Sep 17 00:00:00 2001 From: Kuniwak Date: Tue, 7 Nov 2023 17:26:46 +0900 Subject: [PATCH] Can implement original composite agents --- Runtime/Agents/AbstractAgent.cs | 4 ++-- Runtime/Agents/AbstractCompositeAgent.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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());