public virtual void Init(GoWorldManager goworld, string entityID, bool isPlayer, float x, float y, float z, float yaw, Hashtable attrs) { this.goworld = goworld; this.ID = entityID; this.IsPlayer = isPlayer; this.transform.position = new Vector3(x, y, z); this.SetYaw(yaw); this.Attrs = attrs; }
void Awake() { Debug.Log("GameClient is awake ..."); manager = GetComponent <GoWorldManager> (); recvState = RecvState.RecvPayloadLen; recvPayloadLenBuff = new byte[SIZE_FIELD_SIZE]; payloadBuff = new byte[MAX_PAYLOAD_LEN]; tcpClient = new TcpClient(); // BitConverter.IsLittleEndian = true; }