A simple Unity tutorial/framework for syncronizing updates to a frame rate and recognizing input patterns (special commands and sequences of commands).
Consider the source code of this project as CC0 (public domain). The graphics assets have a different license, you can find it together with the graphics assets.