private void ActivatedByPlayer(PlayerControl aPlayerControl) { m_UsedByPlayer = true; ToggleObject(m_UsedByPlayer); // call some function on player which tells it what to make visible aPlayerControl.SetItemVisibility(ItemID); }