GameObject.md (430B)
1 # Game Object 2 3 CS 331 W12 L3 4 5 **Definition:** This is the data type of objects in the game. This is a broad class that has some built in functionallity. 6 7 A common way to move an object forward using it's [Vector3](Vector3.md) is as follows: 8 ```csharp 9 float speed = 2; //default forward speed 10 bool moveForward = Input.GetKey("up"); 11 if(moveForward){ 12 transform.position += transform.forward * speed * Time.deltaTime(); 13 } 14 15 ```