public static void OnSceneLoading() { ShopData.SelectedShopCell = ShopData.Cells.Unknown; ShopData.BuyButton = GameObject.Find("ButtonBuy"); ShopData.AddAvailableBullet(LevelPlayground.Bullets.Knife); ShopData.CheckAvailableBullets(); GameObject.Find("TextBuy").GetComponent <Text>().text = Configs.Strings.GetString("buy"); GameObject.Find("TextShop").GetComponent <Text>().text = Configs.Strings.GetString("shop"); ShopData.ShowBuyButton(false); if (Profile.Settings.CurrentBullet == LevelPlayground.Bullets.Unknown) { Profile.Settings.CurrentBullet = LevelPlayground.Bullets.Knife; } ShopData.CurrentShopCell = ShopData.GetCellByBullet(Profile.Settings.CurrentBullet); Events.LaunchEvent(Events.Types.SelectShopCell, Scenes.ActiveScene); var args = new Dictionary <string, string>(); args.Add("in", "true"); Server.Report(Server.ReportComands.ShopVisit, args); }