25 lines
559 B
C#
25 lines
559 B
C#
using Unity.Mathematics;
|
|
|
|
namespace DanieleMarotta.RiversongCodeShowcase
|
|
{
|
|
public class CritterHerd : Entity, IAgentSourceEntity
|
|
{
|
|
private AgentSourceState _agentsState;
|
|
|
|
public CritterDefinition CritterDefinition { get; set; }
|
|
|
|
public int2 Center { get; set; }
|
|
|
|
public int MaxCritterCount { get; set; }
|
|
|
|
public float SpawnTimer { get; set; }
|
|
|
|
public float SpawnCooldown => 0;
|
|
|
|
public ref AgentSourceState GetAgentSourceStateRW()
|
|
{
|
|
return ref _agentsState;
|
|
}
|
|
}
|
|
}
|