public void VerifyNotes() { TeleportManager.placesName currentPlace = GameManager.instance.currentPlace; foreach (Note note in notes) { if (note.placeName == currentPlace) { if (!note.isPlayer) { note.gameObject.SetActive(true); } } else { if (note) { note.gameObject.SetActive(false); } } } }
public void SetPlace(TeleportManager.placesName nextPlace) { currentPlace = nextPlace; }