| 1234567891011121314151617181920212223242526272829303132333435 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- /* Socket组件-用户 */
- public class UserComp : JCUnityLib.Singleton<UserComp>
- {
- public void getUserInfo(System.Action<UserInfo> cb) {
- UserPlayer.ins.call("userComp.getUserInfo", null, cb);
- }
- public void saveUserInfo(UserInfo userInfo) {
- UserPlayer.ins.call("userComp.saveUserInfo", userInfo);
- }
- public void saveMac2()
- {
- string mac = LoginMgr.myUserInfo.mac;
- if (string.IsNullOrEmpty(mac)) return;
- int type = AimHandler.DeviceType;
- UserPlayer.ins.call("userComp.saveMac2", mac, type);
- }
- public void saveCalibrateRecord(string record) {
- string mac = LoginMgr.myUserInfo.mac;
- if (string.IsNullOrEmpty(mac)) return;
- int type = AimHandler.DeviceType;
- UserPlayer.ins.call("userComp.saveCalibrateRecord", type, record, mac);
- }
- #region 被服务端调用的函数
- public void onResumeCalibrateRecord(string record) {
- AimHandler.ins.ResumeCalibrateRecord(record);
- }
- #endregion
- }
|