Update

Update is called for every frame, if MonoBehaviour is enabled.

Update is the most commonly used function to implement any kind of game behavior.

Example

// Moves the object forward 1 meter per second
function Update () {
  transform.Translate(0, 0, Time.deltaTime*1);
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.118.229