Search Results for

    Show / Hide Table of Contents

    Class PlayerCharacter

    MonoBehaviour that handles dialogue initiation and passing recognized speech to NPCs.

    Inheritance
    Object
    PlayerCharacter
    Namespace: NPCEngine.Components
    Assembly: cs.temp.dll.dll
    Syntax
    public class PlayerCharacter : Singleton<PlayerCharacter>

    Fields

    character

    Character description of the player.

    Declaration
    public Character character
    Field Value
    Type Description
    Character

    CheckCamera

    Declaration
    public Camera CheckCamera
    Field Value
    Type Description
    Camera

    currentLocation

    Location description of the player.

    Declaration
    public Location currentLocation
    Field Value
    Type Description
    Location

    HorizontalMargin

    Declaration
    public float HorizontalMargin
    Field Value
    Type Description
    Single

    MaxRange

    Declaration
    public float MaxRange
    Field Value
    Type Description
    Single

    SpeechToText

    Declaration
    public AbstractSpeechToText SpeechToText
    Field Value
    Type Description
    AbstractSpeechToText

    VerticalMargin

    Declaration
    public float VerticalMargin
    Field Value
    Type Description
    Single

    Methods

    CheckIsSeen(Vector3)

    Check if NPC is seen.

    Declaration
    public bool CheckIsSeen(Vector3 dialogAgentPosition)
    Parameters
    Type Name Description
    Vector3 dialogAgentPosition
    Returns
    Type Description
    Boolean

    DeregisterDialogueCandidate(NonPlayerCharacter)

    Remove NPC from the list of potential conversants.

    Declaration
    public void DeregisterDialogueCandidate(NonPlayerCharacter agent)
    Parameters
    Type Name Description
    NonPlayerCharacter agent

    IsRegistered(NonPlayerCharacter)

    Check if NPC is registered as a dialogue candidate.

    Declaration
    public bool IsRegistered(NonPlayerCharacter agent)
    Parameters
    Type Name Description
    NonPlayerCharacter agent
    Returns
    Type Description
    Boolean

    LeaveDialog()

    Leave current dialogue.

    Declaration
    public void LeaveDialog()

    RegisterDialogueCandidate(NonPlayerCharacter)

    Adds NPC to the list of potential conversants.

    Declaration
    public void RegisterDialogueCandidate(NonPlayerCharacter agent)
    Parameters
    Type Name Description
    NonPlayerCharacter agent
    In This Article
    Back to top npc-engine Unity integration