Ejemplo n.º 1
0
 /// <summary>
 /// 设置床的范围
 /// </summary>
 /// <param name="isShow"></param>
 protected void SetBedRangeStatus(bool isShow)
 {
     //打开所有床位的范围显示
     BuildBedCpt[] listBed = InnBuildHandler.Instance.builderForFurniture.GetAllBed();
     if (!CheckUtil.ArrayIsNull(listBed))
     {
         for (int i = 0; i < listBed.Length; i++)
         {
             BuildBedCpt buildBed = listBed[i];
             buildBed.ShowRange(isShow);
         }
     }
 }
Ejemplo n.º 2
0
    public void SetData(BuildBedCpt buildBedCpt)
    {
        this.buildBedCpt = buildBedCpt;
        BuildBedBean buildBedData = buildBedCpt.buildBedData;

        SetName(buildBedData.bedName);

        //设置价格
        buildBedCpt.GetPrice(out long basePriceS, out long addPriceS);
        SetPrice(basePriceS, addPriceS);

        SetBed(buildBedData);
        buildBedCpt.GetAesthetics(out float addAesthetics, out float subAesthetics, out float totalthetics);
        SetAesthetics(addAesthetics, subAesthetics);
        buildBedCpt.ShowRange(true);
    }
Ejemplo n.º 3
0
 private void OnDisable()
 {
     buildBedCpt.ShowRange(false);
 }