EventActor.GetName C# (CSharp) Method

GetName() public method

public GetName ( ) : string
return string
    public string GetName()
    {
        string name = "";
        if(this.showName && this.isPlayer && !this.overrideName)
        {
            int id = GameHandler.Party().GetPlayerID();
            Character c = GameHandler.Party().GetPartyMember(id);
            if(c != null)
            {
                name = c.GetName();
            }
        }
        else if(this.showName)
        {
            name = this.dialogName[GameHandler.GetLanguage()];
        }
        return name;
    }