public override void OpenUI() { base.OpenUI(); Action <List <AchievementInfoBean> > callBack = SetAchievementInfoData; AchievementInfoHandler.Instance.manager.GetAllAchievement(callBack); rgGroceryType.SetPosition(0, false); }
public override void OpenUI() { base.OpenUI(); GameTimeHandler.Instance.SetTimeStatus(false); rgType.SetCallBack(this); rgType.SetPosition(0, true); }
public override void OpenUI() { base.OpenUI(); GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData(); characterData = gameData.userCharacter; ClearData(); rgType.SetPosition(0, true); }
public override void OpenUI() { base.OpenUI(); rgType.SetPosition(0, false); Action <List <StoreInfoBean> > callBack = SetStoreData; StoreInfoHandler.Instance.manager.GetStoreInfoForPharmacy(callBack); }
public override void CloseUI() { base.CloseUI(); //时间加速回归正常 GameTimeHandler.Instance.SetTimeScale(1); rgTimeScale.SetPosition(-1, false); GameControlHandler.Instance.StopControl(); uiHint.Close(); }
public override void OpenUI() { base.OpenUI(); rgCerpenterType.SetPosition(0, false); Action <List <StoreInfoBean> > callBack = SetStoreData; StoreInfoHandler.Instance.manager.GetStoreInfoForCarpenter(callBack); SetCustomBed(); }
public void SetUserRevenueData(UserRevenueBean userRevenueData) { this.userRevenueData = userRevenueData; GameTimeHandler.Instance.GetTime(out int year, out int month, out int day); if (month == 0) { month = 1; } rgMonth.SetPosition(month - 1, true); }
public override void OpenUI() { base.OpenUI(); //记录数据 GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData(); UserAchievementBean userAchievement = gameData.GetAchievementData(); userAchievement.isOpenedHelp = true; rgHelpType.SetPosition(0, true); }
/// <summary> /// 设置客栈楼层 /// </summary> /// <param name="layer"></param> public void SetInnLayer(int layer) { this.innLayer = layer; btDismantle.gameObject.SetActive(true); GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData(); InnBuildBean innBuild = gameData.GetInnBuildData(); if (innBuild.innSecondWidth == 0 || innBuild.innSecondHeight == 0) { objLayerSelect.SetActive(false); } else { objLayerSelect.SetActive(true); } //镜头初始化 ControlForBuildCpt controlForBuild = GameControlHandler.Instance.manager.GetControl <ControlForBuildCpt>(GameControlHandler.ControlEnum.Build); controlForBuild.SetLayer(innLayer); if (innLayer == 1) { rbTypeBed.gameObject.SetActive(false); rbTypeStairs.gameObject.SetActive(false); rbTypeTable.gameObject.SetActive(true); rbTypeCounter.gameObject.SetActive(true); rbTypeStove.gameObject.SetActive(true); rbTypeDoor.gameObject.SetActive(true); rgType.SetPosition(1, true); } else if (innLayer == 2) { rbTypeBed.gameObject.SetActive(true); rbTypeStairs.gameObject.SetActive(true); rbTypeTable.gameObject.SetActive(false); rbTypeCounter.gameObject.SetActive(false); rbTypeStove.gameObject.SetActive(false); rbTypeDoor.gameObject.SetActive(false); rgType.SetPosition(0, true); } }
public override void RefreshUI() { base.RefreshUI(); if (characterData == null) { return; } SetLoyal(characterData.attributes.loyal); SetSex(characterData.body.sex); SetAttributes(characterData); SetEquip(characterData.equips); SetWorkerInfo(characterData.baseInfo); characterUICpt.SetCharacterData(characterData.body, characterData.equips); rgWorkerTitle.SetPosition(selectTypePosition, true); }
public override void RefreshUI() { base.RefreshUI(); rgType.SetPosition(selectTypePosition,true); }
public override void OpenUI() { base.OpenUI(); rgType.SetPosition(0, false); InitDataByType(StoreForBankTypeEnum.Change); }
public override void OpenUI() { base.OpenUI(); rgRankType.SetPosition(0, true); }
/// <summary> /// 设置商店数据 /// </summary> /// <param name="type"></param> /// <param name="listData"></param> public void SetStoreData(List <StoreInfoBean> listData) { listBedData = listData; rgBedType.SetPosition(0, true); }
public override void OpenUI() { base.OpenUI(); typePosition = 0; rgType.SetPosition(typePosition, true); }