public void ReplaceSetBalanceListener(ISetBalance newValue)
    {
        var index     = UIListenersComponentsLookup.SetBalanceListener;
        var component = CreateComponent <SetBalanceListener>(index);

        component.value = newValue;
        ReplaceComponent(index, component);
    }
示例#2
0
 private void OnListenerLoaded(IGroup <UIListenersEntity> @group, UIListenersEntity uiListenersEntity, int index, IComponent component)
 {
     _balanceListener = uiListenersEntity.setBalanceListener.value;
     SetBalance(Constants.PLAYER_BALANCE_DEFAULT);
 }