| 1234567891011121314151617181920212223 |
- namespace ET
- {
- [ObjectSystem]
- public class PlayerSystem : AwakeSystem<Player, string>
- {
- public override void Awake(Player self, string a)
- {
- self.Awake(a);
- }
- }
- public sealed class Player : Entity, IAwake<string>
- {
- public string Account { get; private set; }
-
- public long UnitId { get; set; }
- public void Awake(string account)
- {
- this.Account = account;
- }
- }
- }
|