Esempio n. 1
0
 protected override void InitializeService()
 {
     timers  = new UpdateTimers();
     runtime = new Stopwatch();
     runtime.Start();
     lastUpdate = 0;
 }
Esempio n. 2
0
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        timeCounter += Time.DeltaTime;
        if (timeCounter >= 1.0f)
        {
            timeCounter = 0;
            var updateTimers = new UpdateTimers
            {
            }.Schedule(this, inputDeps);

            return(updateTimers);
        }
        return(inputDeps);
    }