public override void UpdateSensor() { var state = memory.GetWorldState(); foreach (var pair in resourcesBag.GetResources()) { state.Set("has" + pair.Key, pair.Value > 0); } }
public Dictionary <string, float> GetResources() { return(bankBag.GetResources()); }