예제 #1
0
 private void CutState_OnStateBegin(StandState sender)
 {
     OnHit            += KingCrimsonProjectile_OnHit;
     NonTimedAttack    = true;
     PunchStartPoint   = Owner.Center;
     PunchDirection    = PunchStartPoint.DirectTo(MousePosition, Owner.width + 16 * Range);
     projectile.damage = CutDamage;
     Owner.direction   = MousePosition.X < Owner.Center.X ? -1 : 1;
 }
예제 #2
0
        protected void BeginPunch(StandState sender)
        {
            PunchStartPoint = Owner.Center;

            Owner.direction = MousePosition.X < Owner.Center.X ? -1 : 1;

            PunchDirection = PunchStartPoint.DirectTo(MousePosition, Owner.width + 16 * Range);

            projectile.damage = GetPunchDamage();
        }
예제 #3
0
        private void FalconState_OnStateBegin(StandState sender)
        {
            NonTimedAttack = true;

            OnHit += MagicianRedProjectile_OnHit;

            PunchStartPoint = Owner.Center;

            Owner.direction = MousePosition.X < Owner.Center.X ? -1 : 1;

            PunchDirection = PunchStartPoint.DirectTo(MousePosition, Owner.width + 16 * Range);
        }