private void OnDeselectedUsable(Usable usable)
 {
     if (usableUnityUI != null)
     {
         usableUnityUI.Hide();
         usableUnityUI = null;
     }
     else
     {
         HideControls();
     }
     this.usable = null;
 }
 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);
 }
		private void OnDeselectedUsable(Usable usable) {
			if (usableUnityUI != null) {
				usableUnityUI.Hide();
				usableUnityUI = null;
			} else {
				HideControls();
			}
			this.usable = null;
		}
		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);
		}