void Start() { resources.Add(ResType.FOOD, 4); resources.Add(ResType.WATER, 4); resources.Add(ResType.STONE, 60); DebugPanel.AddDebug(() => { return(foodAlarms); }, "Food Alarms"); DebugPanel.AddDebug(() => { return(waterAlarms); }, "Water Alarms"); Clock.AddTimer((id) => { if (FoodLow()) { foodAlarms++; Clock.AddOneTimeTimer((nid) => { foodAlarms--; }, alarmTimeHours); } }, 1); Clock.AddTimer((id) => { if (WaterLow()) { waterAlarms++; Clock.AddOneTimeTimer((nid) => { waterAlarms--; }, alarmTimeHours); } }, 1); }