im making a 2d game, and i have several every-frame-calculations, like: if score >= to something do this, or if vector3.y <= to something do this another thing, but i think all this checks are no god for my code.
there is any way to call a function every time or something similar?
can you please suggest something to optimize my code?
sorry for bad english, and thanks