/// <summary>
 /// Create a new FrameRateCounter script that modifies the text in the
 /// TextComp of the Entity, to show the FPS count.
 /// </summary>
 /// <param name="comp">The TextComp to modify</param>
 public FrameRateCounter(TextComp comp)
 {
     this.textComp = comp;
     timer.Start();
 }
 /// <summary>
 /// Creates a Textlet, which is a moveable piece of text.
 /// </summary>
 /// <param name="text"></param>
 /// <param name="fontName"></param>
 /// <returns></returns>
 public static Entity CreateTextlet(string text, string fontName = "Font1")
 {
     Entity e = CreateDrawlet();
     e.AddComponent(new ScaleComp());
     TextComp tc = new TextComp(text, fontName);
     e.AddComponent(tc);
     e.Refresh();
     return e;
 }