Update() public method

public Update ( ) : void
return void
示例#1
0
    public void Update()
    {
        if (active && visible)
        {
            timer += Time.deltaTime;

            //refresh tile when time out
            if (timer > timeOut)
            {
                timer = 0;
                tile.Refresh();
            }
        }

        tile.Update();
    }