Merge branch 'master' into builtinmove
| | |
| | | { |
| | | NextAction = GuardAction_Run; |
| | | } |
| | | else |
| | | { |
| | | GuardRun guardRun = m_Animator.GetBehaviour<GuardRun>(); |
| | | guardRun.OnPickUpEnter(); |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | |
| | | Clear();
|
| | | }
|
| | | }
|
| | | else if (_npcConfig.NPCType == (int)E_NpcType.Collect)
|
| | | else if (_npcConfig.NPCType == (int)E_NpcType.Collect
|
| | | || _npcConfig.NPCType == (int)E_NpcType.Flag)
|
| | | {
|
| | | float _chkDist = GeneralDefine.CloseNpcDist + _npcConfig.ModelRadius + 0.3f;
|
| | | if (_chkDistSqrt <= Mathf.Pow(_chkDist, 2))
|
| | |
| | | private void UpdateThirdType(int thirdType)
|
| | | {
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.MountDogz, curSecondType, thirdType, out thirdTypeData);
|
| | | if (thirdTypeData != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | curThirdType = thirdType;
|
| | | OnClickThirdType();
|
| | | CreateTypeCell();
|
| | |
| | |
|
| | | private void OnClickComposeBtn()
|
| | | {
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | composeWinModel.SendComposeRequest(compoundModel,fixedItemIndexDict,composeEffect,1);
|
| | | }
|
| | |
|
| | |
| | | private void UpdateThirdType(int thirdType)
|
| | | {
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Equip, curSecondType,thirdType, out thirdTypeData);
|
| | | if(thirdTypeData != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | curThirdType = thirdType;
|
| | | OnClickThirdType();
|
| | | CreateTypeCell();
|
| | |
| | |
|
| | | private void OnClickComposeBtn()
|
| | | {
|
| | | if (compoundModel != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | composeWinModel.SendComposeRequest(compoundModel,fixedItemIndexDict,composeEffect,1,10000,isIncreaseRate);
|
| | | }
|
| | |
|
| | |
| | | private void UpdateThirdType(int thirdType)
|
| | | {
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Ticket, curSecondType, thirdType, out thirdTypeData);
|
| | | if (thirdTypeData != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | curThirdType = thirdType;
|
| | | CreateTypeCell();
|
| | | }
|
| | |
| | | fixedItemIndexDict.Clear();
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | |
|
| | | List<int> composeCountlist = new List<int>();
|
| | | SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
|
| | | int[] fixedIds = compoundModel.itemID;
|
| | |
| | | {
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | SetFixedItemIndexDic();
|
| | | composeWinModel.SendComposeRequest(compoundModel, fixedItemIndexDict,GetPlayMatEffect(),1);
|
| | | }
|
| | |
| | | private void UpdateThirdType(int thirdType)
|
| | | {
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Item, curSecondType, thirdType, out thirdTypeData);
|
| | | if (thirdTypeData != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | curThirdType = thirdType;
|
| | | OnClickThirdType();
|
| | | CreateTypeCell();
|
| | |
| | | {
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | |
|
| | | SetFixedItemIndexDic();
|
| | | composeWinModel.SendComposeRequest(compoundModel, fixedItemIndexDict,composeEffect,1);
|
| | | }
|
| | |
| | | {
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | |
|
| | | List<int> composeCountlist = new List<int>();
|
| | | fixedItemIndexDict.Clear();
|
| | | SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
|
| | |
| | | private void UpdateThirdType(int thirdType)
|
| | | {
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Wings, curSecondType, thirdType, out thirdTypeData);
|
| | | if (thirdTypeData != null)
|
| | | {
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | | curThirdType = thirdType;
|
| | | OnClickThirdType();
|
| | | CreateTypeCell();
|
| | |
| | |
|
| | | private void OnClickComposeBtn()
|
| | | {
|
| | | if (compoundModel == null) return;
|
| | |
|
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | SetFixedMatIndex();
|
| | | composeWinModel.SendComposeRequest(compoundModel, fixedItemIndexDict, GetPlayMatEffect(), 1, successRate);
|
| | | }
|