Ejemplo n.º 1
0
        public static sceneTag updateTag(sceneTag tag, float fps)
        {
            sceneTag res = new sceneTag(tag);

            res.count++;
            res.totalFps = tag.totalFps + fps;
            return(res);
        }
Ejemplo n.º 2
0
    void updateTagList(String inFps)
    {
        float fps;

        if (!float.TryParse(inFps, out fps))
        {
            Debug.Log("FpsMonitor: receive error fps arg from java");
            fps = 0;
        }

        if (tagList.ContainsKey(getSceneTagName()))
        {
            sceneTag tag = sceneTag.updateTag(tagList[getSceneTagName()], fps);
            tagList[getSceneTagName()] = tag;
        }
        else
        {
            tagList.Add(getSceneTagName(), new sceneTag(fps));
        }

        saveSceneTagList();
    }
Ejemplo n.º 3
0
 // copy constructor
 private sceneTag(sceneTag tag)
 {
     totalFps = tag.totalFps;
     count    = tag.count;
 }