public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack81000, m_Start); GameObject gpos = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.FirePos); if (gpos != null) { GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1105021_01", gpos.transform.position, gpos.transform); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(m_Duration); gae.AddAction(ndEffect); m_effectgo = gae.gameObject; } GameObject gpos2 = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos); if (gpos2 != null) { GameObjectActionExcute gae2 = EffectM.LoadEffect(EffectM.sPath, "1105021_02", gpos2.transform.position, gpos2.transform); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(m_Duration); gae2.AddAction(ndEffect); m_effectgo = gae2.gameObject; } }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack85000, m_Start); SoundPlay.Play("atc_xiaobai", false, false); }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); if ((Parent as Role).m_Pet == null) { (Parent as Role).CreatePet(); } PlayAction(AnimatorState.Attack81000, m_Start); //动作光效 蹦大 挥棍 GameObject posgo = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.FirePos); if (posgo != null) { GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1003061", posgo.transform.position, posgo.transform); if (gae != null) { GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(m_Duration); gae.AddAction(ndEffect); m_effectgo = gae.gameObject; } } if (m_LifePrent is Role) { Pet pet = (m_LifePrent as Role).CurPet; if (pet != null && pet.PetMoveAI is PetWalk1002) { (pet.PetMoveAI as PetWalk1002).m_petState = Pet1002State.toFirePos; } } }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack81000, m_Start); SoundPlay.Play("skill_naixiong", false, false); }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack85000, m_Start); Transform t = null; //RolePropertyM rpm = m_Skin.iGameRole.GetRolePropertyM(); GameObject goLeftHand = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.LeftHandPos); GameObject goRightHand = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.LeftHandPos); if (goLeftHand != null && goRightHand != null) { t = goLeftHand.transform; GameObjectActionExcute gaeLeftHand = EffectM.LoadEffect(EffectM.sPath, "1202031_01", t.position, t); GameObjectActionDelayDestory ndEffectL = new GameObjectActionDelayDestory(1.5f); gaeLeftHand.AddAction(ndEffectL); t = goRightHand.transform; GameObjectActionExcute gaeRightHand = EffectM.LoadEffect(EffectM.sPath, "1202031_01", t.position, t); GameObjectActionDelayDestory ndEffectR = new GameObjectActionDelayDestory(1.5f); gaeRightHand.AddAction(ndEffectR); m_effectgo = gaeRightHand.gameObject; SoundPlay.JoinPlayQueue("atc_thor", 1.5f); } GameObject goRoot = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos); if (goRoot != null) { t = goRoot.transform; GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1202031_02", t.position, t); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(0.5f); gae.AddAction(ndEffect); } }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack86000, m_Start); GameObject gpos = m_Skin.ProPerty.gameObject; GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1402021_01", gpos.transform.position, gpos.transform); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(3f); gae.AddAction(ndEffect); m_effectgo = gae.gameObject; GameObject posgo = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectPos); if (posgo != null) { //m_effectgo = SkillEffects._instance.LoadEffect("effect/prefab/", "1000011",posgo.transform.position,1.5f); gae = EffectM.LoadEffect(EffectM.sPath, "1000011", posgo.transform.position, BattleEnvironmentM.GetLifeMBornNode(true)); ndEffect = new GameObjectActionDelayDestory(1.5f); gae.AddAction(ndEffect); m_effectgo = gae.gameObject; m_effectgo.transform.position += new Vector3(0, 0, -2); } }
public virtual void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.SetTarget(Parent); m_skillinfo = (Parent as Role).PropSkillInfo; m_Start = Parent.m_thisT.localPosition; if (StartAttack != null) { StartAttack(m_AttackSceneID); } //PlayAction(AnimatorState.Attack01,m_Start); }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack83000, m_Start); GameObject gpos = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos); GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1104061", gpos.transform.position, gpos.transform); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(180.0f); m_effectgo = gae.gameObject; }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack85000, m_Start); string effectName = m_Dir == WalkDir.WALKLEFT?"1402011_01":"1402011_02"; GameObject gpos = m_Skin.ProPerty.gameObject; GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, effectName, gpos.transform.position, gpos.transform); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(180.0f); m_effectgo = gae.gameObject; }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); // PlayAction(AnimatorState.Attack85000,m_Start); // // GameObject gpos = m_skillinfo.m_LifeTarget.m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectPos); // string name = "1104041_01"; // if (m_LifePrent.WalkDir == WalkDir.WALKRIGHT) // name = "1104041_02"; // GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, name, gpos.transform.position, gpos.transform); // GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(180.0f); // m_effectgo = gae.gameObject; }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); if (m_LifePrent.m_Attr.IsHide) { if (((m_LifePrent as Role).m_Skill.m_AttackTarget == (m_LifePrent as Role).Target) && (m_LifePrent as Role).m_Skill.m_AttackTarget is Role) { m_LifePrent.WalkDir = (m_LifePrent as Role).m_Skill.GetHideDir((m_LifePrent as Role).Target); (m_LifePrent as Role).RoleWalk.run.m_AttackDir = m_LifePrent.WalkDir; m_Dir = m_LifePrent.WalkDir; } } PlayAction(AnimatorState.Attack85000, m_Start); }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); GameObject posgo = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos); Transform t = posgo.transform; if (t != null) { //m_effectgo = SkillEffects._instance.LoadEffect("effect/prefab/", "1001031",t.position,m_Duration); GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, m_LifePrent.WalkDir == WalkDir.WALKLEFT? "1001121_01" : "1001121_02", t.position, t); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(m_Duration); gae.AddAction(ndEffect); m_effectgo = gae.gameObject; } PlayAction(AnimatorState.Attack82000, m_Start); }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack81000, m_Start); //Transform t = null; //RolePropertyM rpm = m_Skin.iGameRole.GetRolePropertyM(); //GameObject posgo = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos); //if (posgo != null) //{ // t = posgo.transform; // GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1055031", t.position, t); // GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(1.5f); // gae.AddAction(ndEffect); // m_effectgo = gae.gameObject; // SoundPlay.JoinPlayQueue("hammer_hit", 1.5f); //} }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); //动作光效 着火效果 GameObject posgo = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.FirePos); if (posgo != null) { //m_effectgo = SkillEffects._instance.LoadEffect("effect/prefab/", "1003091", // posgo.transform.position, m_Duration, posgo); GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1003091", posgo.transform.position, posgo.transform); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(m_Duration); gae.AddAction(ndEffect); m_effectgo = gae.gameObject; } PlayAction(AnimatorState.Attack81300, m_Start); }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack85000, m_Start); SoundPlay.Play("atc_hulk_02", false, false); GameObject posgo = m_LifePrent.GetSkin().ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos); if (posgo != null) { Vector3 pos = posgo.transform.position; GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1401031", pos, posgo.transform); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(1f); gae.AddAction(ndEffect); m_effectgo = gae.gameObject; } }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack81000, m_Start); Transform t = null; //RolePropertyM rpm = m_Skin.iGameRole.GetRolePropertyM(); GameObject go = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos); if (go != null) { t = go.transform; GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1202041", t.position, t); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(1f); gae.AddAction(ndEffect); } }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack85000, m_Start); SoundPlay.Play(m_LifePrent.m_Attr.ModelType.ToString() + "_atc", false, false); Transform t = null; //RolePropertyM rpm = m_Skin.iGameRole.GetRolePropertyM(); GameObject posgo = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.FirePos); if (posgo != null) { t = posgo.transform; GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1201021", t.position, t); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(1f); gae.AddAction(ndEffect); m_effectgo = gae.gameObject; } }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); /*Transform t = m_Skin.tRoot; * if (t != null) * { * //m_effectgo = SkillEffects._instance.LoadEffect("effect/prefab/", "1001031",t.position,m_Duration); * GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1001201", t.position, BattleEnvironmentM.GetLifeMBornNode(true)); * GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(m_Duration); * gae.AddAction(ndEffect); * m_effectgo = gae.gameObject; * if(m_Dir == WalkDir.WALKRIGHT) * m_effectgo.transform.Rotate(new Vector3(0,180,0),Space.Self); * }*/ PlayAction(AnimatorState.Attack84000, m_Start); // SoundPlay.Play("skill_duang",false,false); }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack86000, m_Start); GameObject posgo = m_LifePrent.GetSkin().ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos); if (posgo != null) { Vector3 pos = posgo.transform.position; string name = "1401171_01"; if (m_LifePrent.WalkDir == WalkDir.WALKRIGHT) { name = "1401171_02"; } GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, name, pos, posgo.transform.GetChild(0)); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(m_Duration); gae.AddAction(ndEffect); m_effectgo = gae.gameObject; } }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack81000, m_Start); //RolePropertyM rpm = m_Skin.iGameRole.GetRolePropertyM(); GameObject posgo = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos); if (posgo != null) { Vector3 pos = posgo.transform.position; GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1055041", pos, posgo.transform); Life ttagrt = (m_LifePrent as Role).RoleSkill.m_AttackTarget; Vector3 tpos = ttagrt.GetCenterPos(); float dis = Mathf.Abs(posgo.transform.position.x - tpos.x); pos.x = tpos.x; gae.transform.localScale = new Vector3(dis * 0.25f, 1, 1); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(2f); gae.AddAction(ndEffect); m_effectgo = gae.gameObject; } }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack85000, m_Start); SoundPlay.Play("atc_viking", false, false); if (m_LifePrent.m_Status.HaveState(StatusType.Berserker)) { GameObject gpos = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos); GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1104031", gpos.transform.position, gpos.transform); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(180.0f); m_effectgo = gae.gameObject; } else { GameObject gpos = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos); GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1104021", gpos.transform.position, gpos.transform); GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(180.0f); m_effectgo = gae.gameObject; } }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); PlayAction(AnimatorState.Attack85000, m_Start); }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); /* Life emeny = CM.GetAllLifeM(m_AttackSceneID,LifeMType.ALL); * * GameObjectActionExcute gae = EffectM.LoadEffect(EffectM.sPath, "1051041", BattleEnvironmentM.Local2WorldPos(m_TargetPos), BattleEnvironmentM.GetLifeMBornNode(true)); * GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(m_action3); * gae.AddAction(ndEffect); * GameObject go = gae.gameObject; * go.transform.parent = m_Skin.tRoot; * go.transform.localPosition = Vector3.zero; * MapGrid gfrom = m_LifePrent.GetMapGrid(); * m_TelePortGrid = gfrom; * MapGrid gstart = gfrom; * //m_Dir = WalkDir.WALKRIGHT; * MapGrid gto = emeny.GetTargetMapGrid(); * int startunit = MapSize.GetGridStart(gto.GridPos.Layer); * int endtunit = startunit + MapSize.GetLayerSize(gto.GridPos.Layer) - 1; * //if (gto.GridPos.Layer > 0) * MapGrid start = MapGrid.GetMG(gto.GridPos.Layer,startunit); * MapGrid end = MapGrid.GetMG(gto.GridPos.Layer,endtunit); * MapGrid gl = gto.GetNextAttackStation(DIR.LEFT,false); * MapGrid gr = gto.GetNextAttackStation(DIR.RIGHT,false); * if (emeny is Role) * m_TargetPos = emeny.transform.localPosition; * else * m_TargetPos = gto.pos; * m_Start = m_Skin.tRoot.localPosition; * m_End = m_Start; * if (gfrom.GridPos.Unit > gto.GridPos.Unit) * { * m_Dir = WalkDir.WALKLEFT; * m_Start = gfrom.pos; * if (gr != null) * m_Start = gr.pos; * if (gl != null) * { * m_TelePortGrid = gl; * m_End = gl.pos; * } * else if (gr != null){ * m_TelePortGrid = gr; * m_End = m_TelePortGrid.pos; * } * else * Debug.Log(gto.GridPos + "左右都没有攻击位"); * } * else * { * m_Dir = WalkDir.WALKRIGHT; * m_Start = gfrom.pos; * if (gl != null) * m_Start = gl.pos; * if (gr !=null) * { * m_TelePortGrid = gr; * m_End = m_TelePortGrid.pos; * } * else if (gl != null) * { * m_TelePortGrid = gl; * m_End = m_TelePortGrid.pos; * } * else * Debug.Log(gto.GridPos + "左右都没有攻击位"); * } * m_LifePrent.InBoat =false; * GameObject posgo = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectPos); * if (posgo != null) * { * //GameObject gobj = SkillEffects._instance.LoadEffect("effect/prefab/", "1051161",posgo.transform.position,1.0f); * GameObjectActionExcute gae1 = EffectM.LoadEffect(EffectM.sPath, "1051161", posgo.transform.position, BattleEnvironmentM.GetLifeMBornNode(true)); * GameObjectActionDelayDestory ndEffect1 = new GameObjectActionDelayDestory(1f); * gae1.AddAction(ndEffect1); * GameObject gobj = gae1.gameObject; * } * m_Skin.ProPerty.SetVisable(false);*/ #if UNITY_EDITOR //Debug.Log("闪烁突袭 " + m_Start + "," + m_End + "," + m_TelePortGrid.GridPos + "," + m_Dir); //FileLog.write(m_LifePrent.SceneID, "闪烁突袭 "+ m_Start + "," + m_End + "," + m_TelePortGrid.GridPos + "," + m_Dir + "," + gfrom.GridPos + "," + gto.GridPos); #endif }
public override void StartWithTarget(Life Parent, StartAttackFun StartAttack) { base.StartWithTarget(Parent, StartAttack); }