Пример #1
0
    private void OnTriggerExit2D(Collider2D collision)
    {
        Shooting shooting = collision.GetComponentInChildren <Shooting>();

        if (shooting != null)
        {
            shooting.Rearm();
        }
    }