示例#1
0
    [SerializeField] Passage[] NextPassages;//array that contains the possible passages that directly follow the current passage

    public string GetCurrentText()
    {
        //function to get the text of the current passage
        string ModifiedPassage = GenderBasedText.AssignGenderText(VariablePassage);

        //use the function from the GenderBasedText script to replace keywords with the right terms depending on the gender
        return(ModifiedPassage);//return the corrected text
        //Creating a new different variable for the new text is necessary so that it does not overwrite the original raw passage
    }
示例#2
0
    [SerializeField] char[] nextSectionCharacters;//array that contains the possible passages that directly follow the current passage

    public string GetCurrentText()
    {
        string adjustedText = GenderBasedText.AssignGenderText(sectionText);

        return(adjustedText);
    }