I am creating this flappy bird style game in unity with C#.
I have a scored function in the Game Controller script. Here it is...
using System.