void Start() { if (diary != null) { if (Diary.diaryRead) { Diary.increaseDiary(); } diary.SetActive(false); } foreach (GameObject door in GameObject.FindGameObjectsWithTag("Door")) { DoorController doorscript = door.GetComponent <DoorController>(); doorscript.closeDoor(); doors.Add(doorscript); } if (startRoomPath != "") { if (!GameStory.reading) { story.story.ChoosePathString(startRoomPath); story.RefreshView(); } } if (enemies == 0) { clearedRoom(); } }
public virtual void Interact() { if (!GameStory.reading) { story.story.ChoosePathString(storyPath); story.RefreshView(); } }