Ejemplo n.º 1
0
    public void DamageTakingAnimation(float angle, float force) // alinan hasarin gorsel sekli
    {
        Vector2 direction = CommonCalculateFunctions.FromAngleToDirection(angle);

        _rb.AddForce(direction * 100);
        _animationScript.DamageTaking();
    }