public void OpenDoor() { animator.SetTrigger("OpenDoor"); foreach (GameObject go in container) { objectHider.ShowGameObject(go); } }
private void Unlock() { if (locked) { locked = false; if (audioSource) { audioSource.Play(); } foreach (GameObject go in container) { objectHider.ShowGameObject(go); } } }