public void Open() { Synchroniser.NewSync(2); Synchroniser.OnActionsReady += CheckBuyBtns; //Synchroniser.OnActionsReady += () => gameObject.SetActive(true); gameObject.SetActive(true); LoginManager.Instance.GetUserInfoAsync(() => Synchroniser.SetReady(0)); ShopManager.Instance.GetShopItemsAsync(() => Synchroniser.SetReady(1)); if (LoginManager.LocalUser) { BonusesTgl.isOn = true; } else { CardsTgl.isOn = true; } CardsTgl.interactable = !LoginManager.LocalUser; CasesTgl.interactable = !LoginManager.LocalUser; }