Example #1
0
    static int isForver(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        FashionShopConfigItem obj = (FashionShopConfigItem)LuaScriptMgr.GetNetObjectSelf(L, 1, "FashionShopConfigItem");
        bool o = obj.isForver();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Example #2
0
    //private void updateOwnedSprite()
    //{
    //    if( _state == 1 )
    //    {
    //        _isOwnedSprite.gameObject.SetActive(false);
    //    }
    //    else
    //    {
    //        List<Goods> goods = MainPlayer.Instance.GetGoods(GoodsCategory.GC_FASHION, _configItem._fashionID);
    //        _isOwnedSprite.gameObject.SetActive(!_fdItem._isDressOn && goods.Count != 0);
    //    }
    //}

    public void updateForever()
    {
        if (_configItem.isForver())
        {
            _clockSprite.gameObject.SetActive(false);
            // _buyBtn.gameObject.SetActive(false);
        }
        else
        {
            _clockSprite.gameObject.SetActive(true);
        }
    }