public override void Initialize() { elos.Load(); base.Initialize(); RefreshExp(); slot.callbacks.onAddBalance.AddListener(OnAddBalance); lastBalance = PlayerPrefs.GetInt(Constants.PLAYER_BALANCE); elos.bonusGame.gameObject.SetActive(false); buyButton.onClick.AddListener(TogglePayTable); _payTableButton.onClick.AddListener(TogglePayTable); _buyTableButton.onClick.AddListener(ToggleBuyTable); currentSpingNumber = 0; uiOn = GetComponent <ElosUI>(); uiOn.enabled = true; }
private void Awake() { anotherScript = GetComponent <ElosUI>(); }