示例#1
0
 public virtual void Awake()
 {
     instanceId = IDGenerator.GetComponentId();
     typeName   = GetType().Name;
 }
示例#2
0
 /// <summary>
 /// 同步发送消息
 /// </summary>
 /// <param name="messageType"></param>
 /// <param name="msg"></param>
 public void SendMessage(int opcode, byte[] msg)
 {
     socket.Send(opcode, IDGenerator.GetRpcId(), msg);
 }
示例#3
0
 public Entity()
 {
     instanceId = IDGenerator.GetEntityId();
     isAsync    = false;
     typeName   = GetType().Name;
 }