示例#1
0
        public IEnumerator Run(
            Client client,
            GameSession session,
            StampSheetRunner stampSheetRunner,
            Dictionary <string, string> config
            )
        {
            Debug.Log("MoneyStoreDiscountDirector::Run");

            _client           = client;
            _session          = session;
            _stampSheetRunner = stampSheetRunner;
            _config           = config;

            yield return(_showcaseWatcher.Run(
                             client,
                             session,
                             _moneyStoreDiscountSetting.showcaseNamespaceName,
                             _moneyStoreDiscountSetting.showcaseModelName,
                             _moneyStoreDiscountSetting.onGetShowcase,
                             _moneyStoreDiscountSetting.onError
                             ));

            yield return(_limitWatcher.Run(
                             client,
                             session,
                             _moneyStoreDiscountSetting.limitNamespaceName,
                             _moneyStoreDiscountSetting.limitModelName,
                             _moneyStoreDiscountSetting.onGetLimitModel,
                             _moneyStoreDiscountSetting.onGetCounter,
                             _moneyStoreDiscountSetting.onCountUpEvent,
                             _moneyStoreDiscountSetting.onError
                             ));
        }
示例#2
0
        public IEnumerator Run(
            Client client,
            GameSession session,
            StampSheetRunner stampSheetRunner,
            Dictionary <string, string> config
            )
        {
            Debug.Log("GachaDirector::Run");

            _client           = client;
            _session          = session;
            _stampSheetRunner = stampSheetRunner;
            _config           = config;

            yield return(_showcaseWatcher.Run(
                             client,
                             session,
                             _gachaSetting.showcaseNamespaceName,
                             _gachaSetting.showcaseModelName,
                             _gachaSetting.onGetShowcase,
                             _gachaSetting.onError
                             ));
        }