public IEnumerator NodifyModifyPlayerName(Coroutine coroutine, RankService _this, NodifyModifyPlayerNameInMessage msg) { var name = msg.Request.ModifyName; var ServerId = msg.Request.ServerId; ServerRankManager.ChangePlayerName(ServerId, name, msg.Request.Guid); yield break; }
public IEnumerator NodifyModifyPlayerName(Coroutine coroutine, ChatService _this, NodifyModifyPlayerNameInMessage msg) { var charController = CharacterManager.Instance.GetCharacterControllerFromMemroy(msg.Request.CharacterId); if (charController != null) { charController.Name = msg.Request.ModifyName; } ChatCharacterProxy proxy; if (_this.Proxys.TryGetValue(msg.Request.CharacterId, out proxy)) { var chatproxy = (ChatProxy)proxy; chatproxy.Character.Name = msg.Request.ModifyName; } yield break; }