Beispiel #1
0
 public override void SetTarget(Target[] newTargets)
 {
     base.SetTarget(newTargets);
     if (!Homing)
     {
         ParentSkill.SkillOwner.NPCRigidBody2D.transform.rotation =
             BattleGlobals.LookAt(ParentSkill.SkillOwner.transform.parent.gameObject,
                                  NPCTargets[MELEE_ATTACK_PRIMARY_TARGET_INDEX].Focus.StartPuck.transform.position,
                                  ParentSkill.SkillOwner.tag);
     }
 }
Beispiel #2
0
 /*
  * This is called separately because in multi-target spells it's better the skill set the target,
  * than the projectile query the skill for a target
  */
 public void SetTargetAndDamage(BattleNPC target, float damageMultiplier)
 {
     m_mainTarget = target;
     m_ProjectileDamageMultiplier = damageMultiplier;
     if (m_ProjectileDamageMultiplier == 0)
     {
         m_ParentSkillByte.DeRegisterProjectile(this);
     }
     else
     {
         m_Rigid2d.transform.rotation = BattleGlobals.LookAt(this.gameObject,
                                                             target.StartPuck.transform.position, this.tag);
     }
 }