private void OnSelectedUsable(Usable usable) { this.usable = usable; usableUnityUI = (usable != null) ? usable.GetComponentInChildren <UsableUnityUI>() : null; if (usableUnityUI != null) { usableUnityUI.Show(GetUseMessage()); } else { ShowControls(); } lastInRange = !IsUsableInRange(); UpdateDisplay(!lastInRange); }