Example #1
0
    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();
        }
    }
Example #2
0
 public virtual void Interact()
 {
     if (!GameStory.reading)
     {
         story.story.ChoosePathString(storyPath);
         story.RefreshView();
     }
 }