private void OnTriggerExit(Collider other) { IShopCustomer shopCustomer = other.GetComponent <IShopCustomer>(); if (shopCustomer != null) { shop.Hide(); } }
private void OnTriggerExit2D(Collider2D collider) { IShopCustomer shopCustomer = collider.GetComponent <IShopCustomer>(); if (shopCustomer != null) { uiShop.Hide(); } }
private void OnCollisionExit2D(Collision2D collision) { shop.Hide(); }
private void OnTriggerExit2D(Collider2D collision) { uiShop.Hide(); }