Simple Player Movement

Iv got things moving within unity with a simple move script. Within the project browser we create a C# script then edit it within Visual studio. The script can then be dragged and dropped on to the cube.

Applying a script to an object

Within the script I have added some code to the “void update”

Movement script

This section of code is basically editing the position of the cube in the scene. A Game object can be edited through the transform on the inspector tab in the same way.

Inspector Tab transform window

The result of the code….

Dancing cube
Dancing Cube