UserComp.cs 401 B

1234567891011121314
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. /* Socket组件-用户 */
  5. public class UserComp : Singleton<UserComp>
  6. {
  7. public void getUserInfo(System.Action<UserInfo> cb) {
  8. UserPlayer.ins.call("userComp.getUserInfo", null, cb);
  9. }
  10. public void saveUserInfo(UserInfo userInfo) {
  11. UserPlayer.ins.call("userComp.saveUserInfo", userInfo);
  12. }
  13. }