예제 #1
0
 public void Update()
 {
     switchTimer -= Time.deltaTime;
     if (switchTimer <= 0.0f)
     {
         switchTimer += switchInterval;
         roomMode.SwitchRoomMode();
     }
     eventTimer.Update();
 }
예제 #2
0
        public void Update()
        {
            updateBuffsTimer.Update();
            removeExpiredTimer.Update();


            if (isLoaded && lostFocusInterval > 0)
            {
                foreach (var pair in buffs)
                {
                    pair.Value.RemoveTime(lostFocusInterval);
                }
                Debug.Log($"remove lost focus interval from buffs: {lostFocusInterval}");
                lostFocusInterval = 0;
            }
        }