Exemplo n.º 1
0
 public PCTimer(UpdateEvent updateEvent)
 {
     timer=	new InternalClock();
     update=	updateEvent;
     prevTime=	DateTime.Now;
     time=	new GameTime(DateTime.Now-prevTime);
     Wfx.Application.Idle+=	onIdle;
 }
    private void Start()
    {
        clock = InternalClock.Instance;
        clock.OnDayChanged.AddListener(OnDayChanged);

        gameObject.tag = TAG;
        OnDayChanged();
    }