Ejemplo n.º 1
0
        //*****************************************************************************************
        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);
        }
Ejemplo n.º 2
0
 public void OnEventMigrant(EventMigrant e)
 {
     WriteEvent(e);
 }
Ejemplo n.º 3
0
 public void onMigrant(EventMigrant evt)
 {
     Configuration conf = Configuration.getInstance();
     if(conf.isEnabledMoreImmigrants.getBool()) {
         Immigrants.processEvent(ref evt);
     }
 }
 public void OnEventMigrant(EventMigrant e)
 {
     WriteEvent(e);
 }