Beispiel #1
0
 private void OnTick(object sender, GameClock.OnTickEventArgs e)
 {
     if (e.time == 0)
     {
         Maintain();
     }
 }
Beispiel #2
0
 private void OnTick(object sender, GameClock.OnTickEventArgs e)
 {
     /*
      * if (!m_IActor.Employee.HasJob())
      *  m_IActor.Employee.FindJob();
      *
      * if (!m_IActor.Resident.HasHome())
      *  m_IActor.Resident.FindHome();
      *
      * if (e.time >= 6 && e.time < 20)
      *  m_IActor.Employee.GoWork();
      *
      * else if (e.time >= 20 || e.time < 6)
      *  m_IActor.Resident.GoHome();
      */
 }
Beispiel #3
0
 private void OnTick(object sender, GameClock.OnTickEventArgs e)
 {
     Debug.Log(e.time);
 }