Skip to content

Commit

Permalink
Merge pull request #18 from DeNA/can-impl-original-composite-agents
Browse files Browse the repository at this point in the history
Make be able to implement custom composite agents
  • Loading branch information
Kuniwak authored Nov 7, 2023
2 parents 371859e + b8e2dbb commit 8256842
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Runtime/Agents/AbstractAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public abstract class AbstractAgent : ScriptableObject
/// <summary>
/// Logger instance used by this agent
/// </summary>
public ILogger Logger { get; internal set; }
public ILogger Logger { get; set; }

/// <summary>
/// Random instance used by this agent
/// </summary>
public virtual IRandom Random { get; internal set; }
public virtual IRandom Random { get; set; }

/// <summary>
/// Run agent
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Agents/AbstractCompositeAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public abstract class AbstractCompositeAgent : AbstractAgent
/// <inheritdoc />
public override IRandom Random
{
internal set
set
{
base.Random = value;
RandomFactory = new RandomFactory(base.Random.Next());
Expand Down

0 comments on commit 8256842

Please sign in to comment.