private void OnTriggerExit(Collider other) { var palette = other.GetComponent <BlockInteractionPalette>(); if (palette) { _activePalette = null; _paletteInSight = false; palette.Hide(); } }
private void OnTriggerEnter(Collider other) { var palette = other.GetComponent <BlockInteractionPalette>(); if (palette) { _activePalette = palette; _paletteInSight = true; if (closedFistDetector.IsOpen()) { palette.Show(); } } }