static int isUsed(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); FashionShopConfigItem obj = (FashionShopConfigItem)LuaScriptMgr.GetNetObjectSelf(L, 1, "FashionShopConfigItem"); bool o = obj.isUsed(); LuaScriptMgr.Push(L, o); return(1); }
private void Click(GameObject go) { _uiStoreFashion.OnClickItem(_fdItem._fashionID); int captainGender = GameSystem.Instance.RoleBaseConfigData2.GetConfigData(MainPlayer.Instance.CaptainID).gender; if (_fdItem._gender != 0) { if (captainGender != _fdItem._gender) { CommonFunction.ShowTip(CommonFunction.GetConstString("UI_FASHION_DRY_DRESSON_FAILED_FOR_GENDER")); // _toggle.value = false; return; } } //if (0 == _state && a_isTry ) //{ // dressUpdate(false); // return; //} if (!_clientDressedOn && 1 == _state && !_configItem.isUsed() && !_fdItem._isDressOn && !_configItem.isForver()) { CommonFunction.ShowPopupMsg(CommonFunction.GetConstString("UI_FASHON_START_TO_DRESS"), null, _voidStartDress , _voidStartDressCancle); return; } // dressUpdate(!_fdItem._isTry); if (_configItem.isMine() || _clickCounter != 0) { dressUpdate(!a_isTry); } }