I have made a unity project with some scripts I know. Extract the file and open it in unity 2021. I’ve added comments to the scripts so you know what each one does. So you drag a script on the cubes and then start the game in play mode. Download