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