void Start() { DefaultSpriteUI.SetMaterial(Resources.Load("Gui/Gui4G") as Material); GuiControls.Start(this); GuiHud.Start(this); Message.MessageSprite = DefaultSpriteUI.AddElement(new Vector2(50, 206), 222, 52, 3, 290, 106, 222, 52); Message.CurrentMessage = E_HudMessageType.E_NONE; // GuiFPS.NumberSprites[0] = DefaultSpriteUI.AddElement(new Vector2(GuiFPS.ScreenLeft, GuiFPS.ScreenBottom), GuiFPS.ScreenWidth, GuiFPS.UvHeight, 10, GuiFPS.UvLeft, GuiFPS.UvTop, GuiFPS.UvWidth, GuiFPS.UvHeight); // GuiFPS.NumberSprites[1] = DefaultSpriteUI.AddElement(new Vector2(GuiFPS.ScreenLeft - GuiFPS.ScreenWidth, GuiFPS.ScreenBottom), GuiFPS.ScreenWidth, GuiFPS.UvHeight, 10, GuiFPS.UvLeft, GuiFPS.UvTop, GuiFPS.UvWidth, GuiFPS.UvHeight); Fade = DefaultSpriteUI.AddElement(new Vector2(0, 0), Screen.width, Screen.height, 10, 404 * 2, 510 * 2, 1, 1); GuiShop.Start(this); IngameMenu.Start(this); ShowMessage(E_HudMessageType.E_NONE); currentAlpha = startAlpha; if (fadeIntoScene) { FadeIn(); } }