예제 #1
0
    public void SetCharacter(CharacterId characterId)
    {
        Debug.Log($"Setting character ID: {characterId}");
        CurrentCharacterId = characterId;
        string nameKey = DataManager.instance.CurrentState.Characters[characterId].NameKey;

        TextObject.GetComponent <LocalisedText>().Key = nameKey;

        if (DataManager.instance.CurrentState.PartyMembers.Contains(characterId))
        {
            PartyIndicator.SetActive(true);
        }
        else
        {
            PartyIndicator.SetActive(false);
        }
    }