| | |
| | | playerName.text = PlayerDatas.Instance.baseData.PlayerName;
|
| | | playerContent.text = m_DialogConfig.content;
|
| | |
|
| | | UI3DModelExhibition.Instance.BeginShowPlayer(playerIcon, PlayerDatas.Instance.baseData.Job, true);
|
| | | UI3DModelExhibition.Instance.ShowPlayer(playerIcon, PlayerDatas.Instance.baseData.Job, true);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | npcContent.text = m_DialogConfig.content;
|
| | |
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(m_DialogConfig.npcId);
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(m_DialogConfig.npcId, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, npcIcon, false, true);
|
| | | UI3DModelExhibition.Instance.ShowNPC(m_DialogConfig.npcId, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, npcIcon, false, true);
|
| | | }
|
| | |
|
| | | if (m_DialogConfig.TalkID != 0)
|
| | |
| | | public void Display() |
| | | { |
| | | timer = 0f; |
| | | UI3DModelExhibition.Instance.BeginShowNPC(model.bigBoxNpcId, Vector3.zero, m_RawImage); |
| | | UI3DModelExhibition.Instance.ShowNPC(model.bigBoxNpcId, Vector3.zero, m_RawImage); |
| | | DisplayBoxSurplusInfo(); |
| | | model.boxSurplusChangeEvent += OnBoxInfoUpdate; |
| | | } |
| | |
| | | public void Display() |
| | | { |
| | | timer = 0f; |
| | | UI3DModelExhibition.Instance.BeginShowNPC(model.eliteMonsters[0], Vector3.zero, m_RawImage); |
| | | UI3DModelExhibition.Instance.ShowNPC(model.eliteMonsters[0], Vector3.zero, m_RawImage); |
| | | DisplayGuardSurplusInfo(); |
| | | model.boxSurplusChangeEvent += OnGuardInfoUpdate; |
| | | } |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(dungeonConfig.BossActorID[0], Vector3.zero, m_BossPortrayal);
|
| | | UI3DModelExhibition.Instance.ShowNPC(dungeonConfig.BossActorID[0], Vector3.zero, m_BossPortrayal);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | void DisplayBossInfo(int _npcId)
|
| | | {
|
| | | m_BossName.gameObject.SetActive(true);
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(_npcId, Vector3.zero, m_BossPortrayal);
|
| | | UI3DModelExhibition.Instance.ShowNPC(_npcId, Vector3.zero, m_BossPortrayal);
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(_npcId);
|
| | | if (npcConfig != null)
|
| | | {
|
| | |
| | |
|
| | | void OnShowFairyBossModel()
|
| | | {
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(fairyBossModel.fairyBossNpcId, Vector3.zero, model);
|
| | | UI3DModelExhibition.Instance.ShowNPC(fairyBossModel.fairyBossNpcId, Vector3.zero, model);
|
| | | }
|
| | |
|
| | | private void OnFoodGetWay()
|
| | |
| | | secondaryId = weapon2,
|
| | | };
|
| | |
|
| | | UI3DModelExhibition.Instance.BeginShowOtherPlayer(m_LeaderMob, data);
|
| | | UI3DModelExhibition.Instance.ShowOtherPlayer(m_LeaderMob, data);
|
| | | m_LeaderNameTxt.text = _leaderData.rolePropData.Name;
|
| | | m_LeaderRealmImg.gameObject.SetActive(_leaderData.rolePropData.RealmLV > 0);
|
| | | var _realmCfg = Config.Instance.Get<RealmConfig>(_leaderData.rolePropData.RealmLV);
|
| | |
| | | m_BossIntroduce.gameObject.SetActive(false);
|
| | | m_ContainerMonster.gameObject.SetActive(true);
|
| | | m_BossIntroduce.Dispose();
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(model.selectedBoss, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_MonsterPortrait);
|
| | | UI3DModelExhibition.Instance.ShowNPC(model.selectedBoss, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_MonsterPortrait);
|
| | | m_MonsterLevel.text = Language.Get("Z1024", npcConfig.NPCLV);
|
| | | break;
|
| | | case 2:
|
| | |
| | | m_ContainerMonster.gameObject.SetActive(true);
|
| | | m_BossIntroduce.Dispose();
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(_bossId);
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(_bossId, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_MonsterPortrait);
|
| | | UI3DModelExhibition.Instance.ShowNPC(_bossId, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_MonsterPortrait);
|
| | | m_MonsterLevel.text = Language.Get("Z1024", npcConfig.NPCLV);
|
| | | break;
|
| | | case 2:
|
| | |
| | | var config = Config.Instance.Get<NPCConfig>(bossId);
|
| | | m_BossName.text = config.charName;
|
| | | m_BossLevel.text = Language.Get("Z1024", config.NPCLV);
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(bossId, config.UIModeLOffset, config.UIModelRotation, m_BossPortrait);
|
| | | UI3DModelExhibition.Instance.ShowNPC(bossId, config.UIModeLOffset, config.UIModelRotation, m_BossPortrait);
|
| | | m_BossAbility.Display(bossId);
|
| | | }
|
| | |
|
| | |
| | | UI3DTreasureExhibition.Instance.BeginShowTreasure(id, modelImg);
|
| | | break;
|
| | | case ModelShowType.mount:
|
| | | UI3DModelExhibition.Instance.BeginShowHourse(id, modelImg);
|
| | | UI3DModelExhibition.Instance.ShowHourse(id, modelImg);
|
| | | break;
|
| | | case ModelShowType.pet:
|
| | | var config = Config.Instance.Get<NPCConfig>(id);
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(id, config.UIModeLOffset, config.UIModelRotation, modelImg);
|
| | | UI3DModelExhibition.Instance.ShowNPC(id, config.UIModeLOffset, config.UIModelRotation, modelImg);
|
| | | break;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | UI3DModelExhibition.Instance.BeginShowPlayer(RoleShowBG, PlayerDatas.Instance.baseData.Job);
|
| | | UI3DModelExhibition.Instance.ShowPlayer(RoleShowBG, PlayerDatas.Instance.baseData.Job);
|
| | | playerPack.RefreshAttrActiveAct += ControlEffect;
|
| | | playerPack.ItemCntAddAct += PutOnEquip;
|
| | | playerPack.ItemCntReduceAct += PutOffEquip;
|
| | |
| | | {
|
| | | if (typeof(PetMatInfoWin).Name != window.name && typeof(ItemInfoWin).Name != window.name) return;
|
| | |
|
| | | UI3DModelExhibition.Instance.BeginShowPlayer(RoleShowBG, PlayerDatas.Instance.baseData.Job);
|
| | | UI3DModelExhibition.Instance.ShowPlayer(RoleShowBG, PlayerDatas.Instance.baseData.Job);
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | |
| | | {
|
| | | _roleEquipDict.Add(itemModel.itemInfo.ItemPlace,itemModel);
|
| | | }
|
| | | UI3DModelExhibition.Instance.BeginShowPlayer(RoleShowBG, PlayerDatas.Instance.baseData.Job);
|
| | | UI3DModelExhibition.Instance.ShowPlayer(RoleShowBG, PlayerDatas.Instance.baseData.Job);
|
| | |
|
| | | }
|
| | |
|
| | |
| | |
|
| | | ClearEquipInfo(place);
|
| | | equipArealist[(RoleEquipType)place].transform.Find("ItemCell").gameObject.SetActive(false);
|
| | | UI3DModelExhibition.Instance.BeginShowPlayer(RoleShowBG, PlayerDatas.Instance.baseData.Job);
|
| | | UI3DModelExhibition.Instance.ShowPlayer(RoleShowBG, PlayerDatas.Instance.baseData.Job);
|
| | | }
|
| | |
|
| | | private void OnClickEquipIntensify(GameObject go)
|
| | |
| | |
|
| | | int playerJob = PlayerDatas.Instance.baseData.Job;
|
| | |
|
| | | UI3DModelExhibition.Instance.BeginShowPlayer(m_playerIcon, playerJob, true);
|
| | | UI3DModelExhibition.Instance.ShowPlayer(m_playerIcon, playerJob, true);
|
| | |
|
| | | m_PlayerNameText.text = PlayerDatas.Instance.baseData.PlayerName;
|
| | |
|
| | |
| | |
|
| | | string npcIcon = configStoryMissions.NpcIcon[IsMultistage];
|
| | |
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(npcId, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_NPCIcon, false, true);
|
| | | UI3DModelExhibition.Instance.ShowNPC(npcId, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_NPCIcon, false, true);
|
| | | }
|
| | | typesPeaker = type;
|
| | | }
|
| | |
| | | case (int)FeatureNoticeEnum.Pet:
|
| | | m_RawImage1.gameObject.SetActive(true);
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(50106001);
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(50106001, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_RawImage1);
|
| | | UI3DModelExhibition.Instance.ShowNPC(50106001, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_RawImage1);
|
| | | break;
|
| | | case (int)FeatureNoticeEnum.Horse:
|
| | | m_RawImage2.gameObject.SetActive(true);
|
| | | HorseConfig _model = Config.Instance.Get<HorseConfig>(100);
|
| | | UI3DModelExhibition.Instance.BeginShowHourse(_model.Model, m_RawImage2);
|
| | | UI3DModelExhibition.Instance.ShowHourse(_model.Model, m_RawImage2);
|
| | | break;
|
| | | case (int)FeatureNoticeEnum.Wing:
|
| | | m_RawImage3.gameObject.SetActive(true);
|
| | |
| | | {
|
| | | var config = Config.Instance.Get<WingRefineExpConfig>(3711);
|
| | | int _modelID = config.Model;
|
| | | UI3DModelExhibition.Instance.BeginShowWing(_modelID, vec3, m_RawImage3);
|
| | | UI3DModelExhibition.Instance.ShowWing(_modelID, vec3, m_RawImage3);
|
| | | }
|
| | | else if (job == 2)
|
| | | {
|
| | | var config = Config.Instance.Get<WingRefineExpConfig>(3721);
|
| | | int _modelID = config.Model;
|
| | | UI3DModelExhibition.Instance.BeginShowWing(_modelID, vec3, m_RawImage3);
|
| | | UI3DModelExhibition.Instance.ShowWing(_modelID, vec3, m_RawImage3);
|
| | | }
|
| | | break;
|
| | | case (int)FeatureNoticeEnum.GossipFurnace:
|
| | |
| | | if (HorseID != mount_ID)
|
| | | {
|
| | | HorseConfig _model = Config.Instance.Get<HorseConfig>(HorseID);
|
| | | UI3DModelExhibition.Instance.BeginShowHourse(_model.Model, m_MountRawImg);
|
| | | UI3DModelExhibition.Instance.ShowHourse(_model.Model, m_MountRawImg);
|
| | | mount_ID = HorseID;
|
| | | if (UI3DModelExhibition.Instance.NpcModelHorse != null)
|
| | | {
|
| | |
| | | typePetID = PetID;
|
| | | timePlay = 0;
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(PetID);
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(PetID, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, _rawImage);
|
| | | UI3DModelExhibition.Instance.ShowNPC(PetID, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, _rawImage);
|
| | | if (UI3DModelExhibition.Instance.NpcModelPet != null)
|
| | | {
|
| | | var animator = UI3DModelExhibition.Instance.NpcModelPet.GetComponent<Animator>();
|
| | |
| | | HorseConfig Horseconfig = Config.Instance.Get<HorseConfig>(ActivateID);
|
| | | int InitFightPower = 0;
|
| | | InitFightPower += Horseconfig.InitFightPower;
|
| | | UI3DModelExhibition.Instance.BeginShowHourse(Horseconfig.Model, m_RawImageMount);
|
| | | UI3DModelExhibition.Instance.ShowHourse(Horseconfig.Model, m_RawImageMount);
|
| | | MountSkills.Clear();
|
| | | foreach (var key in mountModel.GetMountSkillAndItem.Keys)
|
| | | {
|
| | |
| | | HorseConfig Horseconfig = Config.Instance.Get<HorseConfig>(ActivateID);
|
| | | int InitFightPower = 0;
|
| | | InitFightPower += Horseconfig.InitFightPower;
|
| | | UI3DModelExhibition.Instance.BeginShowHourse(Horseconfig.Model, m_RawImageMount);
|
| | | UI3DModelExhibition.Instance.ShowHourse(Horseconfig.Model, m_RawImageMount);
|
| | | MountSkills.Clear();
|
| | | foreach (var key in mountModel.GetMountSkillAndItem.Keys)
|
| | | {
|
| | |
| | | m_RawImagePet.gameObject.SetActive(true);
|
| | | m_RawImageMount.gameObject.SetActive(false);
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(ActivateID);
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(ActivateID, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_RawImagePet);
|
| | | UI3DModelExhibition.Instance.ShowNPC(ActivateID, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_RawImagePet);
|
| | | PetInfoConfig petInfoConfig = Config.Instance.Get<PetInfoConfig>(ActivateID);
|
| | | int InitFightPower = int.Parse(petInfoConfig.InitFightPower);
|
| | | string StrPetSkill = petInfoConfig.SkillID;
|
| | |
| | | m_RawImageMount.gameObject.SetActive(false);
|
| | |
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(ActivateID);
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(ActivateID, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_RawImagePet);
|
| | | UI3DModelExhibition.Instance.ShowNPC(ActivateID, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_RawImagePet);
|
| | | // StartCoroutine("FrameDelay");
|
| | | PetInfoConfig petInfoConfig = Config.Instance.Get<PetInfoConfig>(ActivateID);
|
| | | int InitFightPower = int.Parse(petInfoConfig.InitFightPower);
|
| | |
| | | case ActivateShow.ActivateFunc.Realm:
|
| | | m_ModelRawImage.gameObject.SetActive(true);
|
| | | m_ModelRawImage.rectTransform.sizeDelta = new Vector2(680, 510);
|
| | | UI3DModelExhibition.Instance.BeginShowPlayer(m_ModelRawImage, PlayerDatas.Instance.baseData.Job, RoleEquipType.retWing);
|
| | | UI3DModelExhibition.Instance.ShowPlayer(m_ModelRawImage, PlayerDatas.Instance.baseData.Job, RoleEquipType.retWing);
|
| | | break;
|
| | | case ActivateShow.ActivateFunc.GodWeapon:
|
| | | m_ModelRawImage.gameObject.SetActive(true);
|
| | |
| | | StopBoss();
|
| | | m_RawBoss.gameObject.SetActive(false);
|
| | | m_RawPlayer.gameObject.SetActive(true);
|
| | | UI3DModelExhibition.Instance.BeginShowSitDownPlayer(m_RawPlayer, PlayerDatas.Instance.baseData.Job);
|
| | | UI3DModelExhibition.Instance.ShowSitDownPlayer(m_RawPlayer, PlayerDatas.Instance.baseData.Job);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | m_RawPlayer.gameObject.SetActive(true);
|
| | | StopBoss();
|
| | | m_RawBoss.gameObject.SetActive(false);
|
| | | UI3DModelExhibition.Instance.BeginShowSitDownPlayer(m_RawPlayer, PlayerDatas.Instance.baseData.Job);
|
| | | UI3DModelExhibition.Instance.ShowSitDownPlayer(m_RawPlayer, PlayerDatas.Instance.baseData.Job);
|
| | | }
|
| | | else if (_realmPoint >= config.NeedGood)
|
| | | {
|
| | |
| | | StopBoss();
|
| | | m_RawBoss.gameObject.SetActive(true);
|
| | | UI3DModelExhibition.Instance.StopShow();
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(config.BossID, config.IsBigRealm == 1 ? Vector3.zero : direction, m_RawBoss, false);
|
| | | UI3DModelExhibition.Instance.ShowNPC(config.BossID, config.IsBigRealm == 1 ? Vector3.zero : direction, m_RawBoss, false);
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(config.BossID);
|
| | | var npcModel = UI3DModelExhibition.Instance.NpcModelPet;
|
| | | m_RawBoss.transform.localPosition = config.IsBigRealm == 1 ? m_BossPositions[1] : m_BossPositions[0];
|
| | |
| | | OnUpdateSpecialAttr();
|
| | | OnUpdateLvExp();
|
| | | m_PlayerFightPower.text = PlayerDatas.Instance.baseData.FightPoint.ToString();
|
| | | UI3DModelExhibition.Instance.BeginShowPlayer(m_PlayerShowModel, PlayerDatas.Instance.baseData.Job);
|
| | | UI3DModelExhibition.Instance.ShowPlayer(m_PlayerShowModel, PlayerDatas.Instance.baseData.Job);
|
| | | OnRefreshRealm();
|
| | | OnRefreshWorldLv();
|
| | | }
|
| | |
| | | wingsId=wing,
|
| | | secondaryId=weapon2,
|
| | | };
|
| | | UI3DModelExhibition.Instance.BeginShowOtherPlayer(roleModel, data);
|
| | | UI3DModelExhibition.Instance.ShowOtherPlayer(roleModel, data);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | m_RawModel.gameObject.SetActive(true);
|
| | | var config = Config.Instance.Get<HorseConfig>(id);
|
| | | UI3DModelExhibition.Instance.BeginShowHourse(config.Model, m_RawModel);
|
| | | UI3DModelExhibition.Instance.ShowHourse(config.Model, m_RawModel);
|
| | | if (UI3DModelExhibition.Instance.NpcModelHorse != null)
|
| | | {
|
| | | var animator = UI3DModelExhibition.Instance.NpcModelHorse.GetComponent<Animator>();
|
| | |
| | | {
|
| | | m_RawModel.gameObject.SetActive(true);
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(id);
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(id, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_RawModel);
|
| | | UI3DModelExhibition.Instance.ShowNPC(id, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_RawModel);
|
| | | if (UI3DModelExhibition.Instance.NpcModelPet != null)
|
| | | {
|
| | | var animator = UI3DModelExhibition.Instance.NpcModelPet.GetComponent<Animator>();
|
| | |
| | | m_BossName.text = npcConfig.charName;
|
| | | m_BossLevel.text = Language.Get("HeadUpName_Monster", npcConfig.NPCLV);
|
| | |
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(towerFloorConfig.BossId, new Vector3(0, 30, 0), m_BossPortrait);
|
| | | UI3DModelExhibition.Instance.ShowNPC(towerFloorConfig.BossId, new Vector3(0, 30, 0), m_BossPortrait);
|
| | |
|
| | | var challengable = !model.allTowerCompleted && model.selectedFloor == model.currentFloor;
|
| | | if (challengable)
|
| | |
| | | PetInfoConfig petInfo = tipsModel.unlockPetDict[storeConfig.ItemID];
|
| | | var config = Config.Instance.Get<NPCConfig>(petInfo.ID);
|
| | | fightPower.text = petInfo.ShowFightPower.ToString();
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(petInfo.ID, config.UIModeLOffset, config.UIModelRotation,rawImag);
|
| | | UI3DModelExhibition.Instance.ShowNPC(petInfo.ID, config.UIModeLOffset, config.UIModelRotation,rawImag);
|
| | | break;
|
| | | case 41:
|
| | | titleText.text = Language.Get("StoreMountPush");
|
| | | HorseConfig horseConfig = tipsModel.unlockMountDict[storeConfig.ItemID];
|
| | | fightPower.text = horseConfig.ShowFightPower.ToString();
|
| | | UI3DModelExhibition.Instance.BeginShowHourse(horseConfig.Model,rawImag);
|
| | | UI3DModelExhibition.Instance.ShowHourse(horseConfig.Model,rawImag);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | _wingRawImage.gameObject.SetActive(true);
|
| | | var config = Config.Instance.Get<WingRefineExpConfig>((int)itemModel.itemInfo.ItemID);
|
| | | int _modelID = config.Model;
|
| | | UI3DModelExhibition.Instance.BeginShowWing(_modelID, Vec, _wingRawImage);
|
| | | UI3DModelExhibition.Instance.ShowWing(_modelID, Vec, _wingRawImage);
|
| | | }
|
| | |
|
| | |
|
| | |
| | | {
|
| | | int _weaponId = firstTimeRechargeModel.TryOutDic[job];
|
| | | var config = Config.Instance.Get<ItemConfig>(_weaponId);
|
| | | UI3DModelExhibition.Instance.BeginShowEquipment(config.ChangeOrd, _angle, _rawImage);
|
| | | UI3DModelExhibition.Instance.ShowEquipment(config.ChangeOrd, _angle, _rawImage);
|
| | | ItemCellModel ItemModel = new ItemCellModel(_weaponId,true,0,1);
|
| | | m_ItemCell.Init(ItemModel);
|
| | | m_ItemCell.cellBtn.RemoveAllListeners();
|
| | |
| | | }
|
| | | }
|
| | | var config = Config.Instance.Get<ItemConfig>(_weaponId);
|
| | | UI3DModelExhibition.Instance.BeginShowEquipment(config.ChangeOrd, _angle, _rawImage);
|
| | | UI3DModelExhibition.Instance.ShowEquipment(config.ChangeOrd, _angle, _rawImage);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | m_RawImageBoy.gameObject.SetActive(true);
|
| | | m_RawImageGirl.gameObject.SetActive(false);
|
| | | UI3DModelExhibition.Instance.BeginShowEquipment(itemConfig.ChangeOrd, Vec3, m_RawImageBoy);
|
| | | UI3DModelExhibition.Instance.ShowEquipment(itemConfig.ChangeOrd, Vec3, m_RawImageBoy);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_RawImageBoy.gameObject.SetActive(false);
|
| | | m_RawImageGirl.gameObject.SetActive(true);
|
| | | UI3DModelExhibition.Instance.BeginShowEquipment(itemConfig.ChangeOrd, Vec3, m_RawImageGirl);
|
| | | UI3DModelExhibition.Instance.ShowEquipment(itemConfig.ChangeOrd, Vec3, m_RawImageGirl);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | m_RawImageBoy.gameObject.SetActive(true);
|
| | | m_RawImageGirl.gameObject.SetActive(false);
|
| | | UI3DModelExhibition.Instance.BeginShowEquipment(itemConfig.ChangeOrd, Vec3, m_RawImageBoy);
|
| | | UI3DModelExhibition.Instance.ShowEquipment(itemConfig.ChangeOrd, Vec3, m_RawImageBoy);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_RawImageBoy.gameObject.SetActive(false);
|
| | | m_RawImageGirl.gameObject.SetActive(true);
|
| | | UI3DModelExhibition.Instance.BeginShowEquipment(itemConfig.ChangeOrd, Vec3, m_RawImageGirl);
|
| | | UI3DModelExhibition.Instance.ShowEquipment(itemConfig.ChangeOrd, Vec3, m_RawImageGirl);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | DontDestroyOnLoad(gameObject);
|
| | | }
|
| | |
|
| | | public void BeginShowLoginPlayer(RawImage _rawImage, int _job)
|
| | | public void ShowLoginPlayer(RawImage _rawImage, int _job)
|
| | | {
|
| | | var clothesItemId = 0;
|
| | | var weaponItemId = 0;
|
| | |
| | | isDialogue = false,
|
| | | };
|
| | |
|
| | | BeginShowPlayer(_rawImage, data);
|
| | | ShowPlayer(_rawImage, data);
|
| | | }
|
| | |
|
| | | public void BeginShowPlayer(RawImage _rawImage, int _job, bool _isDialogue = false)
|
| | | public void ShowPlayer(RawImage _rawImage, int _job, bool _isDialogue = false)
|
| | | {
|
| | | var clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | | var clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
|
| | |
| | | isDialogue = _isDialogue,
|
| | | };
|
| | |
|
| | | BeginShowPlayer(_rawImage, data);
|
| | | ShowPlayer(_rawImage, data);
|
| | | }
|
| | |
|
| | | public void BeginShowPlayer(RawImage _rawImage, int _job, RoleEquipType _exceptEquip)
|
| | | public void ShowPlayer(RawImage _rawImage, int _job, RoleEquipType _exceptEquip)
|
| | | {
|
| | | var clothes = _exceptEquip == RoleEquipType.retClothes ?
|
| | | null : playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | |
| | | isDialogue = false,
|
| | | };
|
| | |
|
| | | BeginShowPlayer(_rawImage, data);
|
| | | ShowPlayer(_rawImage, data);
|
| | | }
|
| | |
|
| | | public void BeginShowPlayer(RawImage _rawImage, UI3DPlayerExhibitionData data)
|
| | | public void ShowPlayer(RawImage _rawImage, UI3DPlayerExhibitionData data)
|
| | | {
|
| | | StopShow();
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void BeginShowOtherPlayer(RawImage _rawImage, UI3DPlayerExhibitionData data)
|
| | | public void ShowOtherPlayer(RawImage _rawImage, UI3DPlayerExhibitionData data)
|
| | | {
|
| | | StopShow();
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void BeginShowSitDownPlayer(RawImage _rawImage, int _job)
|
| | | public void ShowSitDownPlayer(RawImage _rawImage, int _job)
|
| | | {
|
| | | BeginShowPlayer(_rawImage, _job);
|
| | | ShowPlayer(_rawImage, _job);
|
| | | if (playerModel != null)
|
| | | {
|
| | | playerModel.SitDown();
|
| | | }
|
| | | }
|
| | |
|
| | | public void BeginShowHourse(int _modelId, RawImage _rawImage)
|
| | | public void ShowHourse(int _modelId, RawImage _rawImage)
|
| | | {
|
| | | StopShow();
|
| | | m_ShowCamera.enabled = true;
|
| | |
| | | }
|
| | |
|
| | | private GameObject ObjEquipment;
|
| | | public void BeginShowEquipment(int _modelId, Vector3 _localEulerAngles, RawImage _rawImage)
|
| | | public void ShowEquipment(int _modelId, Vector3 _localEulerAngles, RawImage _rawImage)
|
| | | {
|
| | | var instance = UI3DModelFactory.LoadUIWing(_modelId);
|
| | | ObjEquipment = instance;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void BeginShowWing(int _modelId, Vector3 _localEulerAngles, RawImage _rawImage)
|
| | | public void ShowWing(int _modelId, Vector3 _localEulerAngles, RawImage _rawImage)
|
| | | {
|
| | | StopShow();
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void BeginShowNPC(int _npcId, Vector3 _localEulerAngles, RawImage _rawImage, bool _gray = false, bool _isDialogue = false)
|
| | | public void ShowNPC(int _npcId, Vector3 _localEulerAngles, RawImage _rawImage, bool _gray = false, bool _isDialogue = false)
|
| | | {
|
| | | BeginShowNPC(_npcId, Vector3.zero, _localEulerAngles, _rawImage, _gray, _isDialogue);
|
| | | ShowNPC(_npcId, Vector3.zero, _localEulerAngles, _rawImage, _gray, _isDialogue);
|
| | | }
|
| | |
|
| | | public void BeginShowNPC(int _npcId, Vector3 _offset, Vector3 _localEulerAngles, RawImage _rawImage, bool _gray = false, bool _isDialogue = false)
|
| | | public void ShowNPC(int _npcId, Vector3 _offset, Vector3 _localEulerAngles, RawImage _rawImage, bool _gray = false, bool _isDialogue = false)
|
| | | {
|
| | | StopShow();
|
| | | m_ShowCamera.enabled = true;
|