public override void AddRangeEffect() { if (RangeEffect != null || !FarmMenu.ShouldDrawLasthitRange) { return; } RangeEffect = ControlledUnit.AddParticleEffect("particles/ui_mouseactions/drag_selected_ring.vpcf"); RangeEffect.SetControlPoint(1, new Vector3(FarmMenu.RedColor, FarmMenu.GreenColor, FarmMenu.BlueColor)); // R G B RangeEffect.SetControlPoint(2, new Vector3(AttackRange + FarmMenu.RangedBonusRange, 255, 0)); }
public IEnumerator OnNetMsg_NotifySkillModelRangeCoroutine(RangeEffect pMsg) { if (pMsg != null) { UInt64 owner = pMsg.guid; Vector3 pos = this.ConvertPosToVector3(pMsg.pos); Vector3 dir = this.ConvertDirToVector3(pMsg.dir); //创建特效 yield return(1); // 创建技能范围特效 Thanos.Effect.EffectManager.Instance.CreateAreaEffect(owner, pMsg.effectid, pMsg.uniqueid, dir, pos); } else { Debug.LogError("msg is null in OnNetMsg_NotifySkillModelRangeCoroutine"); } }
public Int32 OnNotifySkillModelRange(RangeEffect pMsg) { StartCoroutine(OnNetMsg_NotifySkillModelRangeCoroutine(pMsg)); return((Int32)ErrorCodeEnum.Normal); }