MonoBehaviour.Update 更新
当MonoBehaviour启用时,其Update在每一帧被调用。例如 让一个物体稳定转动
using UnityEngine;
using System.Collections;
public class Rotator : MonoBehaviour {
// Before rendering each frame..
void Update ()
{
// Rotate the game object that this script is attached to by 15 in the X axis,
// 30 in the Y axis and 45 in the Z axis, multiplied by deltaTime in order