Esempio 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);
    }
Esempio 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);
 }