riversong code showcase
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
[GameSystemGroup(typeof(AgentSpawnSystemsGroup))]
|
||||
public class DayOnlyAgentSpawnSystemsGroup : GameSystemGroup
|
||||
{
|
||||
[InjectService]
|
||||
private World _world;
|
||||
|
||||
public override void Update()
|
||||
{
|
||||
if (!_world.AgentsState.SpawnTickNow) return;
|
||||
if (_world.TimeState.DayNightCycleStep != DayNightCycleStep.Day) return;
|
||||
|
||||
base.Update();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user