clampcorder / Snake_Unity

Clone of the classic game Snake, in Unity/C#
0 stars 0 forks source link

Alterable game speed #6

Open clampcorder opened 2 years ago

clampcorder commented 2 years ago

Note, very slow game speeds feel a little uncontrollable.

It is probably a good time to move over to InvokeRepeating

clampcorder commented 2 years ago
InvokeRepeating(nameof(TimedUpdate), 0.0f, updateFreqS);
CancelInvoke(nameof(TimedUpdate));