예제 #1
0
        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;
        }
예제 #2
0
 private void Awake()
 {
     anotherScript = GetComponent <ElosUI>();
 }