public override void Awake() { base.Awake(); if (rgType != null) { rgType.SetCallBack(this); } if (btBack != null) { btBack.onClick.AddListener(OpenMainUI); } if (btDismantle != null) { btDismantle.onClick.AddListener(DismantleMode); } if (btLayerFirstLayer != null) { btLayerFirstLayer.onClick.AddListener(OnClickForFirstLayer); } if (btLayerSecondLayer != null) { btLayerSecondLayer.onClick.AddListener(OnClickForSecondLayer); } SetInnAesthetics(); }
public override void Awake() { base.Awake(); if (rgType != null) { rgType.SetCallBack(this); } }
public new void Start() { base.Start(); if (rgGroceryType != null) { rgGroceryType.SetCallBack(this); } }
public override void OpenUI() { base.OpenUI(); GameTimeHandler.Instance.SetTimeStatus(false); rgType.SetCallBack(this); rgType.SetPosition(0, true); }
public new void Start() { base.Start(); if (rgGuildStoreType != null) { rgGuildStoreType.SetCallBack(this); } }
public override void Awake() { base.Awake(); if (rgCerpenterType != null) { rgCerpenterType.SetCallBack(this); } if (btCustomBed != null) { btCustomBed.onClick.AddListener(OnClickForCustomBed); } }
public override void Awake() { base.Awake(); if (rgMonth != null) { rgMonth.SetCallBack(this); } if (ddYear != null) { ddYear.onValueChanged.AddListener(OnValueChangedForYear); } }
public new void Start() { base.Start(); if (rgStyleType != null) { rgStyleType.SetCallBack(this); } if (rgPartType != null) { rgPartType.SetCallBack(this); } }
public override void Awake() { base.Awake(); if (btExit != null) { btExit.onClick.AddListener(OnClickExit); } if (rgHelpType != null) { rgHelpType.SetCallBack(this); } }
public override void Awake() { base.Awake(); if (rgBedType != null) { rgBedType.SetCallBack(this); } if (btSubmit != null) { btSubmit.onClick.AddListener(OnClickForSumbit); } if (etBedName != null) { etBedName.onEndEdit.AddListener(OnEndEidtForName); } }
public override void Awake() { base.Awake(); if (btBack != null) { btBack.onClick.AddListener(OpenWorkUI); } if (rgWorkerTitle != null) { rgWorkerTitle.SetCallBack(this); } if (btLast != null) { btLast.onClick.AddListener(OnClickForLastCharacter); } if (btNext != null) { btNext.onClick.AddListener(OnClickForNextCharacter); } }
public override void Awake() { base.Awake(); if (btSubmit) { btSubmit.onClick.AddListener(OnClickForSubmit); } if (btSelectCharacter) { btSelectCharacter.onClick.AddListener(OnClickForSelectCharacter); } if (btClear) { btClear.onClick.AddListener(OnClickForClear); } if (rgType) { rgType.SetCallBack(this); } if (gridVertical) { gridVertical.AddCellListener(OnCellForItem); } if (cvHair) { cvHair.SetCallBack(this); } if (cvMouth) { cvMouth.SetCallBack(this); } if (cvEye) { cvEye.SetCallBack(this); } if (cvSkin) { cvSkin.SetCallBack(this); } }
public void Start() { if (btWorker != null) { btWorker.onClick.AddListener(OpenWorkerUI); } if (btBuild != null) { btBuild.onClick.AddListener(OpenBuildUI); } if (btMenu != null) { btMenu.onClick.AddListener(OpenMenuUI); } if (btBackpack != null) { btBackpack.onClick.AddListener(OpenBackpackUI); } if (btFavorability != null) { btFavorability.onClick.AddListener(OpenFavorabilityUI); } if (btInnData != null) { btInnData.onClick.AddListener(OpenStatisticsUI); } if (btSetting != null) { btSetting.onClick.AddListener(OpenSettingUI); } if (btHelp != null) { btHelp.onClick.AddListener(OpenHelpUI); } if (btDebug != null) { btDebug.onClick.AddListener(OpenTestUI); } if (btSleep != null) { btSleep.onClick.AddListener(OnClickForEndDay); } if (btJumpTime != null) { btJumpTime.onClick.AddListener(OnClickForJumpTime); } if (btHotel != null) { btHotel.onClick.AddListener(OnClickForHotel); } if (btFamily != null) { btFamily.onClick.AddListener(OnClickForFamily); } if (rgTimeScale != null) { rgTimeScale.SetCallBack(this); } if (btLayerFirstLayer != null) { btLayerFirstLayer.onClick.AddListener(OnClickForFirstLayer); } if (btLayerSecondLayer != null) { btLayerSecondLayer.onClick.AddListener(OnClickForSecondLayer); } InitInnData(); GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData(); //判断是否展示教程 UserAchievementBean userAchievement = gameData.GetAchievementData(); if (!userAchievement.isOpenedHelp) { UIHandler.Instance.manager.OpenUIAndCloseOther <UIGameHelp>(UIEnum.GameHelp); } RefreshUI(); }
public override void Start() { base.Start(); rgType.SetCallBack(this); loansStr = TextHandler.Instance.manager.GetTextById(191); }
public override void Awake() { base.Awake(); rgType.SetCallBack(this); }
private void Start() { InitData(); if (btBack != null) { btBack.onClick.AddListener(OpenStartUI); } if (btCreate != null) { btCreate.onClick.AddListener(CreateNewGame); } if (rgSex != null) { rgSex.SetCallBack(this); } if (colorSkin != null) { colorSkin.SetCallBack(this); } if (colorHair != null) { colorHair.SetCallBack(this); } if (selectHair != null) { selectHair.SetSelectNumber(listSelectHair.Count); selectHair.SetCallBack(this); } if (colorEye != null) { colorEye.SetCallBack(this); } if (selectEye != null) { selectEye.SetSelectNumber(listSelectEye.Count); selectEye.SetCallBack(this); } if (colorMouth != null) { colorMouth.SetCallBack(this); } if (selectMouth != null) { selectMouth.SetSelectNumber(listSelectMouth.Count); selectMouth.SetCallBack(this); } if (selectHat != null) { selectHat.SetSelectNumber(listSelectHat.Count); selectHat.SetCallBack(this); } if (selectClothes != null) { selectClothes.SetSelectNumber(listSelectClothes.Count); selectClothes.SetCallBack(this); } if (selectShoes != null) { selectShoes.SetSelectNumber(listSelectShoes.Count); selectShoes.SetCallBack(this); } if (btRandomCharacter != null) { btRandomCharacter.onClick.AddListener(OnClickRandomCharacter); } }