UserComp.cs 376 B

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