//***************************************************************************************** public static void processEvent(ref EventMigrant evt) { TimeManager tm = AManager<TimeManager>.getInstance(); if(nextImmigrantDay <= tm.day) { nextImmigrantDay = tm.day + UnityEngine.Random.Range(1, 3); } else { nextImmigrantDay = nextImmigrantDay + UnityEngine.Random.Range(1, 3); } lastImmigrantDay = tm.day; UI.print("Someone's coming over the hills. I think it's one of us.."); Dbg.msg(Dbg.Grp.Units, 5, "Immigrant event processed, new immigrant check set to day: " + nextImmigrantDay); }
public void OnEventMigrant(EventMigrant e) { WriteEvent(e); }
public void onMigrant(EventMigrant evt) { Configuration conf = Configuration.getInstance(); if(conf.isEnabledMoreImmigrants.getBool()) { Immigrants.processEvent(ref evt); } }