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);
                }
            }
        }
    }
예제 #2
0
 public void SetPlace(TeleportManager.placesName nextPlace)
 {
     currentPlace = nextPlace;
 }