// Update is called once per frame void Update() { timer.Increment(Time.deltaTime); if (timer.IsTimeUp()) { timer.Reset(); Tick(); } }