Esempio n. 1
0
    void AddForce(BulletImpact _impact)
    {
        if (hover_script.GetAlive())
        {
            hover_script.SetAlive(false);
            on_death.Invoke();
        }

        _impact.body.AddForce(_impact.dir * bullet_hit_force, ForceMode2D.Impulse);
    }