public void Update() { timer -= Time.deltaTime; timer_view.TickUp(unit.process_time, Time.deltaTime); if (timer <= 0) { unit.BeReady(); } }
public void Update() { if (timer >= 0) { timer_view.TickUp(wait_time, Time.deltaTime); timer -= Time.deltaTime; } else { unit.Ready(); } }