Merge branch 'master' into 【1.4】聚魂功能
| | |
| | | GA_Player _player = null;
|
| | | for (int i = 0; i < m_ContaintList.Count; ++i)
|
| | | {
|
| | | _player = GAMgr.Instance.GetBySID(m_ContaintList[i]) as GA_Player;
|
| | | _player = GetBySID(m_ContaintList[i]) as GA_Player;
|
| | | if (_player == null)
|
| | | {
|
| | | continue;
|
| | |
| | | ShowOrHideModel(_showOrHide);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | ShowEffect();
|
| | | }
|
| | | }
|
| | |
|
| | | public sealed override void ShowOrHideModel(bool showOrHide)
|
| | |
| | | { |
| | | _dict[_bones[i]] = int.Parse(_effects[i]); |
| | | |
| | | // Debug.LogFormat("设置特效配置: {0} => {1}", _bones[i], _dict[_bones[i]]); |
| | | // Debug.LogFormat("设置特效配置: {0} => {1}", _bones[i], _dict[_bones[i]]); |
| | | } |
| | | |
| | | effectDict[ResourcesName] = _dict; |
| | |
| | | {
|
| | | _result = string.Empty;
|
| | | }
|
| | | if (_chat.chatType == ChatInfoType.Fairy)
|
| | | {
|
| | | var model = ModelCenter.Instance.GetModel<DailyQuestModel>();
|
| | | if (model.GetQuestState((int)DailyQuestType.FairyFeast) == DailyQuestModel.DailyQuestState.Normal
|
| | | && PlayerDatas.Instance.baseData.MapID == 31230)
|
| | | {
|
| | | _result = Regex.Replace(_result, "[\x00-\x2F]|[\x3A-\x40]|[\x5B-\x60]|[\x7B-\x7E]", string.Empty);
|
| | | _result = _result.Replace("。", string.Empty);
|
| | | _result = _result.Replace(",", string.Empty);
|
| | | _result = _result.Replace(";", string.Empty);
|
| | | _result = _result.Replace("、", string.Empty);
|
| | | _result = _result.Replace("?", string.Empty);
|
| | | }
|
| | | }
|
| | | if (DirtyWordConfig.IsDirtWord(_result))
|
| | | {
|
| | | _result = DirtyWordConfig.IsDirtWord(_result, '*');
|
| | |
| | | GameObject Skillimage2;
|
| | | [SerializeField]
|
| | | GameObject Skillimage3;
|
| | | [SerializeField]
|
| | | GameObject Skillimage4;
|
| | | [SerializeField]
|
| | | GameObject Skillimage5;
|
| | | private float timePlay = 0;//坐骑动作播放时间
|
| | | List<GameObject> Skillimage = new List<GameObject>();
|
| | |
|
| | |
| | | private int pitchOnHorseID = 0;
|
| | | private void Start()
|
| | | {
|
| | | Skillimage.Clear();
|
| | | Skillimage.Add(Skillimage1);
|
| | | Skillimage.Add(Skillimage2);
|
| | | Skillimage.Add(Skillimage3);
|
| | | |
| | | m_NotUnlockButton.AddListener(OnClickNotUnlockButton);
|
| | | }
|
| | | private void OnEnable()
|
| | |
| | | }
|
| | | public void PanelAssignment(int mountID)
|
| | | {
|
| | | SetSkillimage();
|
| | | pitchOnHorseID = mountID;
|
| | | MountAttribute(mountID);
|
| | | PanelClassify(mountID);
|
| | |
| | | }
|
| | | return fightNum;
|
| | | }
|
| | |
|
| | | private void SetSkillimage()
|
| | | {
|
| | | if (Skillimage.Count <= 0)
|
| | | {
|
| | | Skillimage.Clear();
|
| | | Skillimage.Add(Skillimage1);
|
| | | Skillimage.Add(Skillimage2);
|
| | | Skillimage.Add(Skillimage3);
|
| | | Skillimage.Add(Skillimage4);
|
| | | Skillimage.Add(Skillimage5);
|
| | | }
|
| | | } |
| | | }
|
| | |
|
| | | }
|
| | |
| | | GameObject Skillimage2;
|
| | | [SerializeField]
|
| | | GameObject Skillimage3;
|
| | |
|
| | | [SerializeField]
|
| | | GameObject Skillimage4;
|
| | | [SerializeField]
|
| | | GameObject Skillimage5;
|
| | | [SerializeField] UIEffect m_UIeffect2;//经验条特效
|
| | | private int typePetID = 0;
|
| | | private float timePlay = 0;//灵宠动作播放时间
|
| | |
| | | private void OnEnable()
|
| | | {
|
| | | timePlay = 0;
|
| | | Skillimage.Clear();
|
| | | Skillimage.Add(Skillimage1);
|
| | | Skillimage.Add(Skillimage2);
|
| | | Skillimage.Add(Skillimage3);
|
| | | |
| | | isAutoTrain = false;
|
| | | breakLockBtn.AddListener(ClickBreakBtn);
|
| | | petAutoTrainBtn.AddListener(ClickPetAutoTrainBtn);
|
| | |
| | |
|
| | | public void ModelShow(int PetID)
|
| | | {
|
| | | SetSkillimage();
|
| | | petmodel.curPetId = PetID;
|
| | | isAutoTrain = false;
|
| | | petInfoConfig = Config.Instance.Get<PetInfoConfig>(PetID);
|
| | |
| | | FragmentUnlockTip.SetActive(false);
|
| | | FullAttTip.SetActive(true);
|
| | | }
|
| | | private void SetSkillimage()
|
| | | {
|
| | | if (Skillimage.Count <= 0)
|
| | | {
|
| | | Skillimage.Add(Skillimage1);
|
| | | Skillimage.Add(Skillimage2);
|
| | | Skillimage.Add(Skillimage3);
|
| | | Skillimage.Add(Skillimage4);
|
| | | Skillimage.Add(Skillimage5);
|
| | | } |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var skinnedMeshRenderer = clothesModel.GetComponentInChildren<SkinnedMeshRenderer>(true);
|
| | |
|
| | | var mat = MaterialLoader.LoadClothesMaterial(resID, false, IsSuit(job, resID));
|
| | | skinnedMeshRenderer.material = mat;
|
| | | if (mat)
|
| | | {
|
| | | skinnedMeshRenderer.material = mat;
|
| | | }
|
| | |
|
| | | LayerUtility.SetLayer(skinnedMeshRenderer.gameObject, LayerUtility.Player, false);
|
| | | clothesModel.SetActive(true);
|
| | |
| | | int m_NPCId = 0;
|
| | | GameObject npcModel = null;
|
| | | SFXController m_NpcEffect;
|
| | | readonly List<SFXController> m_BindEffectList = new List<SFXController>();
|
| | | public GameObject NpcModelPet
|
| | | {
|
| | | get { return npcModel; }
|
| | |
| | | }
|
| | |
|
| | | instance.SetActive(true);
|
| | |
|
| | | if (npcModel)
|
| | | {
|
| | | ShowNpcEffect(npcModel.transform, config.MODE);
|
| | | }
|
| | |
|
| | | ResetCameraColor(_gray);
|
| | | m_CameraColor.saturation = _gray ? 0.08f : 1f;
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void ShowNpcEffect(Transform parent, string modelName)
|
| | | {
|
| | | HideNpcEffect();
|
| | |
|
| | | var _dict = ModelResConfig.GetEffectDict(modelName);
|
| | | if (_dict != null)
|
| | | {
|
| | | foreach (var _bone in _dict.Keys)
|
| | | {
|
| | | var _ctrl = SFXPlayUtility.Instance.PlayBattleEffect(_dict[_bone], parent.GetChildTransformDeeply(_bone));
|
| | | m_BindEffectList.Add(_ctrl);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void HideNpcEffect()
|
| | | {
|
| | | foreach (var _ctrl in m_BindEffectList)
|
| | | {
|
| | | SFXPlayUtility.Instance.Release(_ctrl);
|
| | | }
|
| | | m_BindEffectList.Clear();
|
| | | }
|
| | | }
|
| | |
|
| | | public struct UI3DPlayerExhibitionData
|