| | |
| | | [SerializeField] Transform fakeRedBZ; |
| | | [SerializeField] Transform fakeRedAward; |
| | | |
| | | [Header("武将进场时间")] |
| | | public float heroShowTime = 0.1f; |
| | | [Header("武将攻击速度越大越快")] |
| | | public float heroAtkSpeed = 2f; |
| | | [Header("多段飘血以及物品出现间隔毫秒")] |
| | | public int atkValueShowCD = 200; |
| | | |
| | | [Header("是否循环播放他人战斗")] |
| | | public bool isOthersLoop = false; |
| | | |
| | | bool isCD = false; |
| | | |
| | | int beforeLayerNum; //布阵层级 对比变化展示特效 |
| | |
| | | } |
| | | |
| | | GuildBossManager.Instance.TaofaBoss(0); |
| | | ShowAttackCD().Forget(); |
| | | // ShowAttackCD().Forget(); |
| | | } |
| | | |
| | | async UniTask ShowAttackCD() |
| | |
| | | ShowDynamicUI(); |
| | | } |
| | | |
| | | |
| | | void AtkResultEvent() |
| | | { |
| | | //1. 玩家从pos1 移动到pos2 |
| | |
| | | heroModel.GetHero().onComplete = null; |
| | | heroModel.PlayAnimation("run", true); |
| | | heroModel.transform.localPosition = pos1.localPosition; |
| | | heroModel.transform.DOLocalMove(pos2.localPosition, 0.3f).OnComplete(() => |
| | | heroModel.transform.DOLocalMove(pos2.localPosition, heroShowTime).OnComplete(() => |
| | | { |
| | | ShowDmg().Forget(); |
| | | }); |
| | |
| | | heroModel.transform.localPosition = pos1.localPosition; |
| | | }; |
| | | heroModel.HeroPlay("attack"); |
| | | |
| | | if (GuildBossManager.Instance.atkResult.AtkType == 0) |
| | | { |
| | | hurtEffect.Play(); |
| | |
| | | attackType = hurtData.IsSuper == 1 ? (int)DamageType.CritDamage : 2 |
| | | }; |
| | | hurtValues[i].text = BattleUtility.DisplayDamageNum(dmg); |
| | | await UniTask.Delay(200); |
| | | await UniTask.Delay(atkValueShowCD); |
| | | } |
| | | else |
| | | { |
| | |
| | | |
| | | awardValues[i].text = itemData.Count.ToString(); |
| | | awardIcons[i].SetItemSprite((int)itemData.ItemID); |
| | | await UniTask.Delay(200); |
| | | await UniTask.Delay(atkValueShowCD); |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | var skinConfig = HorseSkinConfig.Get(HorseManager.Instance.GetUsingHorseSkinID(false)); |
| | | heroModel.Create(skinConfig.SkinID, PhantasmPavilionManager.Instance.GetMyModelSkinID(), 1.2f); |
| | | heroModel.GetHero().SetSpeed(heroAtkSpeed); |
| | | for (int i = 0; i < hurtValues.Length; i++) |
| | | { |
| | | hurtValues[i].transform.localScale = Vector3.zero; |
| | |
| | | int index = keys.IndexOf(GuildBossManager.Instance.lastPlayTick) + 1; |
| | | if (index >= keys.Count) |
| | | { |
| | | index = 0; |
| | | index = isOthersLoop ? 0 : -1; //是否循环播放 |
| | | } |
| | | GuildBossManager.Instance.lastPlayTick = keys[index]; |
| | | var atkData = GuildBossManager.Instance.taofaAtkData[keys[index]]; |
| | | var atkPlayerID = atkData.playerID; |
| | | int atkPlayerID = 0; |
| | | TaofaAtkData atkData = null; |
| | | if (index >= 0) |
| | | { |
| | | GuildBossManager.Instance.lastPlayTick = keys[index]; |
| | | atkData = GuildBossManager.Instance.taofaAtkData[keys[index]]; |
| | | atkPlayerID = atkData.playerID; |
| | | } |
| | | for (int i = 0; i < otherPlayers.Count; i++) |
| | | { |
| | | if (!otherPlayers[i].isActiveAndEnabled) |