コード例 #1
0
ファイル: MonoIslandUICanvas.cs プロジェクト: slb1988/agame
        private void SetupBuilding(MonoIslandBuilding building)
        {
            CabinDataItemBase base2 = this.buildingDataDict[building];
            int extendGrade         = (base2.status != CabinStatus.UnLocked) ? 1 : base2.extendGrade;
            CabinExtendGradeMetaData cabinExtendGradeMetaDataByKey = CabinExtendGradeMetaDataReader.GetCabinExtendGradeMetaDataByKey(base2.cabinType, extendGrade);

            building.UpdateBuildingWhenExtend(cabinExtendGradeMetaDataByKey.buildingPath);
        }
コード例 #2
0
        private bool OnBeginExtend(int extendGrade)
        {
            MonoIslandBuilding       building = this._data2BuildingDict[this._cabinData.cabinType];
            CabinExtendGradeMetaData cabinExtendGradeMetaDataByKey = CabinExtendGradeMetaDataReader.GetCabinExtendGradeMetaDataByKey(this._cabinData.cabinType, extendGrade);

            building.UpdateBuildingWhenExtend(cabinExtendGradeMetaDataByKey.buildingPath);
            building.AddHighLightMat(null);
            building.SetHighLightAlpha(1f);
            building.SetRenderQueue(E_IslandRenderQueue.Front);
            building.SetPolygonOffset(building.highlight_polygon_offset);
            Singleton <WwiseAudioManager> .Instance.Post("UI_Island_Building_Extension", null, null, null);

            this.PlayEffect(base.view.transform.Find("EffectContainer/IslandCabinExtend"), true);
            return(false);
        }