1234567891011121314151617181920212223 |
- using XGame;
- using XGame.Framework.Data;
- namespace FL.Data
- {
- public class PlayerService : DataSingleton<PlayerService>
- {
- /// <summary>
- /// 模拟初始化数据
- /// </summary>
- public void Mock()
- {
- var data = PlayerData.Instance;
- data.UID = UIDDefine.New();
- data.Name = "player";
- var attr = PlayerData.Instance.Attr;
- attr.Hp = 10000;
- attr.HpLimit = 10000;
- attr.MoveSpeed = 5;
- attr.Attack = 15;
- }
- }
- }
|