| | |
| | | }
|
| | | }
|
| | |
|
| | | public void SetFunctionalNpcRealm(int _realm)
|
| | | {
|
| | | m_Realm.gameObject.SetActive(true);
|
| | | m_PlayerName.alignment = TextAnchor.MiddleLeft;
|
| | |
|
| | | var realmConfig = ConfigManager.Instance.GetTemplate<RealmConfig>(_realm);
|
| | | if (realmConfig != null)
|
| | | {
|
| | | m_Realm.SetSprite(realmConfig.Img);
|
| | | SetImageMaterialTexture(realmConfig.Img);
|
| | | }
|
| | | }
|
| | |
|
| | | public void SetTitle(uint _titleId)
|
| | | {
|
| | | titleId = _titleId;
|
| | |
| | |
|
| | | public void SetNPCName(string _name)
|
| | | {
|
| | | SetRealm(0);
|
| | | SetFunctionalNpcRealm(0);
|
| | | m_PlayerName.text = _name;
|
| | | SyncPosition(true);
|
| | | }
|
| | |
| | | var config = ConfigManager.Instance.GetTemplate<NPCConfig>(_id);
|
| | | if (config != null)
|
| | | {
|
| | | SetRealm(config.Realm);
|
| | | SetFunctionalNpcRealm(config.Realm);
|
| | | m_PlayerName.text = config.charName;
|
| | | }
|
| | |
|