public void ReplaceSetBalanceListener(ISetBalance newValue) { var index = UIListenersComponentsLookup.SetBalanceListener; var component = CreateComponent <SetBalanceListener>(index); component.value = newValue; ReplaceComponent(index, component); }
private void OnListenerLoaded(IGroup <UIListenersEntity> @group, UIListenersEntity uiListenersEntity, int index, IComponent component) { _balanceListener = uiListenersEntity.setBalanceListener.value; SetBalance(Constants.PLAYER_BALANCE_DEFAULT); }