示例#1
0
    public override void OpenUI()
    {
        base.OpenUI();
        Action <List <AchievementInfoBean> > callBack = SetAchievementInfoData;

        AchievementInfoHandler.Instance.manager.GetAllAchievement(callBack);
        rgGroceryType.SetPosition(0, false);
    }
示例#2
0
    public override void OpenUI()
    {
        base.OpenUI();
        GameTimeHandler.Instance.SetTimeStatus(false);

        rgType.SetCallBack(this);
        rgType.SetPosition(0, true);
    }
示例#3
0
    public override void OpenUI()
    {
        base.OpenUI();
        GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData();

        characterData = gameData.userCharacter;
        ClearData();
        rgType.SetPosition(0, true);
    }
示例#4
0
    public override void OpenUI()
    {
        base.OpenUI();
        rgType.SetPosition(0, false);

        Action <List <StoreInfoBean> > callBack = SetStoreData;

        StoreInfoHandler.Instance.manager.GetStoreInfoForPharmacy(callBack);
    }
示例#5
0
    public override void CloseUI()
    {
        base.CloseUI();
        //时间加速回归正常

        GameTimeHandler.Instance.SetTimeScale(1);
        rgTimeScale.SetPosition(-1, false);
        GameControlHandler.Instance.StopControl();
        uiHint.Close();
    }
示例#6
0
    public override void OpenUI()
    {
        base.OpenUI();
        rgCerpenterType.SetPosition(0, false);

        Action <List <StoreInfoBean> > callBack = SetStoreData;

        StoreInfoHandler.Instance.manager.GetStoreInfoForCarpenter(callBack);
        SetCustomBed();
    }
示例#7
0
 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);
 }
示例#8
0
    public override void OpenUI()
    {
        base.OpenUI();
        //记录数据
        GameDataBean        gameData        = GameDataHandler.Instance.manager.GetGameData();
        UserAchievementBean userAchievement = gameData.GetAchievementData();

        userAchievement.isOpenedHelp = true;
        rgHelpType.SetPosition(0, true);
    }
示例#9
0
    /// <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);
        }
    }
示例#10
0
 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);
 }
示例#11
0
 public override void RefreshUI()
 {
     base.RefreshUI();
     rgType.SetPosition(selectTypePosition,true);
 }
示例#12
0
 public override void OpenUI()
 {
     base.OpenUI();
     rgType.SetPosition(0, false);
     InitDataByType(StoreForBankTypeEnum.Change);
 }
示例#13
0
 public override void OpenUI()
 {
     base.OpenUI();
     rgRankType.SetPosition(0, true);
 }
示例#14
0
 /// <summary>
 /// 设置商店数据
 /// </summary>
 /// <param name="type"></param>
 /// <param name="listData"></param>
 public void SetStoreData(List <StoreInfoBean> listData)
 {
     listBedData = listData;
     rgBedType.SetPosition(0, true);
 }
示例#15
0
 public override void OpenUI()
 {
     base.OpenUI();
     typePosition = 0;
     rgType.SetPosition(typePosition, true);
 }