
A dog object might have
“bark” behavior
“walk around” behavior
“love humans” behavior
Scripts describe behaviors that get attached to Game Objects
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.Translate (0, -2.5 * Time.daltaTime, 0, Space.World);
}
}