ProjectilePierce
This commit is contained in:
parent
258fb7791a
commit
60e3feab26
|
|
@ -61,7 +61,8 @@ public class AimArrowController : MonoBehaviour
|
||||||
|
|
||||||
ArrowLeftRight = (int)IngameMgr.Ins.Get_SkillValue(eSkillType.ArrowLeftRight),
|
ArrowLeftRight = (int)IngameMgr.Ins.Get_SkillValue(eSkillType.ArrowLeftRight),
|
||||||
ArrowUpDown = (int)IngameMgr.Ins.Get_SkillValue(eSkillType.ArrowUpDown),
|
ArrowUpDown = (int)IngameMgr.Ins.Get_SkillValue(eSkillType.ArrowUpDown),
|
||||||
Bounce = (int)IngameMgr.Ins.Get_SkillValue(eSkillType.Bounce)
|
Bounce = (int)IngameMgr.Ins.Get_SkillValue(eSkillType.Bounce),
|
||||||
|
Pierce = (int)IngameMgr.Ins.Get_SkillValue(eSkillType.ProjectilePierce)
|
||||||
};
|
};
|
||||||
|
|
||||||
int lineCnt = 1 + basePd.PreviousArrow;
|
int lineCnt = 1 + basePd.PreviousArrow;
|
||||||
|
|
@ -81,6 +82,7 @@ public class AimArrowController : MonoBehaviour
|
||||||
ArrowLeftRight = basePd.ArrowLeftRight,
|
ArrowLeftRight = basePd.ArrowLeftRight,
|
||||||
ArrowUpDown = basePd.ArrowUpDown,
|
ArrowUpDown = basePd.ArrowUpDown,
|
||||||
Bounce = basePd.Bounce,
|
Bounce = basePd.Bounce,
|
||||||
|
Pierce = basePd.Pierce,
|
||||||
|
|
||||||
IsPC = basePd.IsPC,
|
IsPC = basePd.IsPC,
|
||||||
m_Data = basePd.m_Data,
|
m_Data = basePd.m_Data,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ public class Projectile : MonoBehaviour
|
||||||
|
|
||||||
Vector2 dir;
|
Vector2 dir;
|
||||||
Vector2 prevPos;
|
Vector2 prevPos;
|
||||||
ObscuredInt m_bounceCount, m_piereceCount;
|
ObscuredInt m_bounceCount;
|
||||||
|
|
||||||
ProjectileData m_ProjectileData;
|
ProjectileData m_ProjectileData;
|
||||||
|
|
||||||
|
|
@ -98,10 +98,9 @@ public class Projectile : MonoBehaviour
|
||||||
|
|
||||||
Check_Hit(collision);
|
Check_Hit(collision);
|
||||||
|
|
||||||
if (m_piereceCount > 0)
|
if (m_ProjectileData.Pierce > 0)
|
||||||
{
|
{
|
||||||
--m_piereceCount;
|
--m_ProjectileData.Pierce;
|
||||||
m_piereceCount.RandomizeCryptoKey();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -226,7 +225,8 @@ public class Projectile : MonoBehaviour
|
||||||
|
|
||||||
ArrowLeftRight = 0,
|
ArrowLeftRight = 0,
|
||||||
ArrowUpDown = 0,
|
ArrowUpDown = 0,
|
||||||
Bounce = m_ProjectileData.Bounce
|
Bounce = m_ProjectileData.Bounce,
|
||||||
|
Pierce = m_ProjectileData.Pierce,
|
||||||
});
|
});
|
||||||
|
|
||||||
p.transform.position = pos;
|
p.transform.position = pos;
|
||||||
|
|
@ -304,4 +304,5 @@ public class ProjectileData
|
||||||
public int ArrowLeftRight;
|
public int ArrowLeftRight;
|
||||||
public int ArrowUpDown;
|
public int ArrowUpDown;
|
||||||
public int Bounce;
|
public int Bounce;
|
||||||
|
public int Pierce;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue