Пример #1
0
    public override void UpdateSensor()
    {
        var state = memory.GetWorldState();

        foreach (var pair in resourcesBag.GetResources())
        {
            state.Set("has" + pair.Key, pair.Value > 0);
        }
    }
Пример #2
0
 public Dictionary <string, float> GetResources()
 {
     return(bankBag.GetResources());
 }