Ejemplo n.º 1
0
 public override void CollideSkillAction(Collider other)
 {
     if (other.gameObject.tag == "Head" && other.gameObject == TG)
     {
         PlayerControlThree otherPCT = other.GetComponent <PlayerControlThree>();
         if (!otherPCT.GetPlayerState().InHQ)
         {
             otherPCT.GetPlayerState().SetEffectedList(this.skillEffectList);
         }
         SkillParent.SetActive(false);
     }
 }
Ejemplo n.º 2
0
 private void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.tag == "Head")
     {
         PlayerControlThree targetPlayerControl = col.gameObject.GetComponent <PlayerControlThree>();
         foreach (SkillEffectBase effect in this.ShepherdAttackEffectBasic)
         {
             if (effect.GetType().Equals(typeof(KnockBack)))
             {
                 (effect as KnockBack).SetKnockBackQuaternion(this.transform, targetPlayerControl.transform);
             }
         }
         targetPlayerControl.GetPlayerState().SetEffectedList(this.ShepherdAttackEffectBasic);
     }
 }