private void DeactivePopup(Collider2D collision) { if (collision.gameObject != LocalPlayer.Instance.gameObject) { return; } uiFieldPopup.Deactive(); }
private void OnTriggerExit2D(Collider2D collision) { if (collision.gameObject != LocalPlayer.Instance.gameObject) { return; } CraftDataMan.Instance.SetCurrentFacility(null); if (currentRecipe == null) { uiFieldPopup.Deactive(); } }