Unity3d Scripts for a 2D Game