UserInfoNamePushCtrl.cs 388 B

12345678910111213141516
  1. using FL.Data;
  2. using XGame.Framework.Network;
  3. namespace FL.Network
  4. {
  5. public class UserInfoNamePushCtrl : MsgController<UserInfoNamePush>
  6. {
  7. protected override void OnProcess(UserInfoNamePush message, object context)
  8. {
  9. if ( message?.name != null)
  10. {
  11. PlayerData.Instance.Name = message.name;
  12. }
  13. }
  14. }
  15. }