Пример #1
0
    private void OnTriggerExit(Collider other)
    {
        IShopCustomer shopCustomer = other.GetComponent <IShopCustomer>();

        if (shopCustomer != null)
        {
            shop.Hide();
        }
    }
Пример #2
0
    private void OnTriggerExit2D(Collider2D collider)
    {
        IShopCustomer shopCustomer = collider.GetComponent <IShopCustomer>();

        if (shopCustomer != null)
        {
            uiShop.Hide();
        }
    }
Пример #3
0
 private void OnCollisionExit2D(Collision2D collision)
 {
     shop.Hide();
 }
Пример #4
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     uiShop.Hide();
 }