public string GetMainPlayerClassName() { if (TryGetCharacterWindow(out List <CharacterWindowUI> characterWindowList)) { CharacterWindowUI characterWindow = characterWindowList.FirstOrDefault(); if (characterWindow != null) { return(characterWindow.GetClassName()); } } return(""); }
public void GetMainPlayerSpirit(out int curSp, out int maxSp) { curSp = 0; maxSp = 0; if (TryGetCharacterWindow(out List <CharacterWindowUI> characterWindowList)) { CharacterWindowUI characterWindow = characterWindowList.FirstOrDefault(); if (characterWindow != null) { characterWindow.GetSpirit(out curSp, out maxSp); } } }
public void GetMainPlayerHealth(out int curHp, out int maxHp) { curHp = 0; maxHp = 0; if (TryGetCharacterWindow(out List <CharacterWindowUI> characterWindowList)) { CharacterWindowUI characterWindow = characterWindowList.FirstOrDefault(); if (characterWindow != null) { characterWindow.GetHealth(out curHp, out maxHp); } } }