示例#1
0
 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();
 }
示例#2
0
 public override void Awake()
 {
     base.Awake();
     if (rgType != null)
     {
         rgType.SetCallBack(this);
     }
 }
示例#3
0
 public new void Start()
 {
     base.Start();
     if (rgGroceryType != null)
     {
         rgGroceryType.SetCallBack(this);
     }
 }
示例#4
0
    public override void OpenUI()
    {
        base.OpenUI();
        GameTimeHandler.Instance.SetTimeStatus(false);

        rgType.SetCallBack(this);
        rgType.SetPosition(0, true);
    }
示例#5
0
 public new void Start()
 {
     base.Start();
     if (rgGuildStoreType != null)
     {
         rgGuildStoreType.SetCallBack(this);
     }
 }
示例#6
0
 public override void Awake()
 {
     base.Awake();
     if (rgCerpenterType != null)
     {
         rgCerpenterType.SetCallBack(this);
     }
     if (btCustomBed != null)
     {
         btCustomBed.onClick.AddListener(OnClickForCustomBed);
     }
 }
示例#7
0
 public override void Awake()
 {
     base.Awake();
     if (rgMonth != null)
     {
         rgMonth.SetCallBack(this);
     }
     if (ddYear != null)
     {
         ddYear.onValueChanged.AddListener(OnValueChangedForYear);
     }
 }
示例#8
0
 public new void Start()
 {
     base.Start();
     if (rgStyleType != null)
     {
         rgStyleType.SetCallBack(this);
     }
     if (rgPartType != null)
     {
         rgPartType.SetCallBack(this);
     }
 }
示例#9
0
 public override void Awake()
 {
     base.Awake();
     if (btExit != null)
     {
         btExit.onClick.AddListener(OnClickExit);
     }
     if (rgHelpType != null)
     {
         rgHelpType.SetCallBack(this);
     }
 }
示例#10
0
    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);
        }
    }
示例#11
0
 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);
     }
 }
示例#12
0
    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);
        }
    }
示例#13
0
    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();
    }
示例#14
0
 public override void Start()
 {
     base.Start();
     rgType.SetCallBack(this);
     loansStr = TextHandler.Instance.manager.GetTextById(191);
 }
示例#15
0
 public override void Awake()
 {
     base.Awake();
     rgType.SetCallBack(this);
 }
示例#16
0
    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);
        }
    }