@script ExecuteInEditMode
private var gui : GUIText;
private var updateInterval = 1.0;
private var lastInterval : double; // Last interval end time
private var frames = 0; // Frames over current interval
function Start()
{
lastInterval = Time.realtimeSinceStartup;
frames = 0;
}
function OnDisable ()
{
if (gui)
DestroyImmediate (gui.gameObject);
}
function Update()
{
#if !UNITY_FLASH
++frames;
var timeNow = Time.realtimeSinceStartup;
if (timeNow > lastInterval + updateInterval)
{
if (!gui)
{