private void LoadSprites() { if (IsAtlasLoaded) { return; } var modPath = PluginManager.instance.FindPluginInfo(Assembly.GetExecutingAssembly()).modPath; if (SpriteUtility.InitialiseAtlas(Path.Combine(modPath, "Resources/Icon.png"), AtlasName)) { SpriteUtility.AddSpriteToAtlas(new Rect(new Vector2(66, 2), new Vector2(30, 30)), RoundButton.NormalBgSprite, AtlasName); SpriteUtility.AddSpriteToAtlas(new Rect(new Vector2(98, 2), new Vector2(30, 30)), RoundButton.HoveredBgSprite, AtlasName); } }