Ejemplo n.º 1
0
    private Mover _mover; // mover of whoever is holding this gun

    #endregion Fields

    #region Methods

    public override void ApplyKnockback(Mover mover, Vector2 impactDirection)
    {
        mover.AddKnockBackImpact(impactDirection, 100);
    }
Ejemplo n.º 2
0
 public override void ApplyKnockback(Mover mover, Vector2 impactDirection)
 {
     Vector3 direction = new Vector3(mover.transform.position.x - transform.position.x, 0);
     mover.AddKnockBackImpact(impactDirection, 40);
 }