Пример #1
0
    static int getTimeLeftStr(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        FashionShopConfigItem obj = (FashionShopConfigItem)LuaScriptMgr.GetNetObjectSelf(L, 1, "FashionShopConfigItem");
        string o = obj.getTimeLeftStr();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Пример #2
0
    void Update()
    {
        if (_leftTimeDetail != null)
        {
            if (_configItem.isInDate())
            {
                // FashionItemDisplay fiDisplay = (FashionItemDisplay)_configItem;
                _leftTimeDetail.text = _configItem.getTimeLeftStr();

                updateExpired(false);
            }
            else
            {
                updateExpired(true);
            }
        }

        if (_configItem.isMine())
        {
            _discountGo.SetActive(false);
            _newGo.SetActive(false);
        }
    }