/// <summary> /// /// </summary> public void RenderFrame() { if (stage != null) { t += GTLib.GameManager.DeltaTime; if (t >= updateInterval) { frameDrift = t - updateInterval; t = frameDrift; if (t > updateInterval) { t = updateInterval; } stage.updateFrame(); if ((meshFilter != null) && ((gfxGenerator != null) && gfxGenerator.renderStage(stage, m_RenderQueue))) { meshFilter.sharedMesh = gfxGenerator.applyToMeshRenderer(meshRenderer); } } } }