void Start() { if (!isLocalPlayer) { // cam.enabled = false; cam2.enabled = false; return; // GetComponent<Rigidbody>().position = new Vector3(100,100,200); } // cam.targetTexture.width = 1024; // cam.targetTexture.height = 768; // cam.targetTexture.width = 640; // cam.targetTexture.height = 480; // cam.targetTexture.width = 320; // cam.targetTexture.height = 240; // cam.Render(); // ros = new ROSBridgeWebSocketConnection ("ws://localhost", 9090); // ros.AddPublisher (typeof(CompressedImageMsg)); // ros.Connect (); // cam.Render(); m_Car = GetComponent <CarController>(); s = new Steering(); s.Start(); Vector3 init = new Vector3(195, 5, -116); transform.position = init; transform.rotation = Quaternion.Euler(0, -110, 0); // m_Car = GetComponent<CarController>(); // s = new Steering(); // s.Start(); }
private void Awake() { // get the car controller m_Car = GetComponent <CarController>(); s = new Steering(); s.Start(); }
private void Awake() { m_Car = GetComponent <CarController>(); s = new Steering(); s.Start(); HighLevelControl = 0; // 0 - straight, 1 - left, 2 - right }
// private WaypointTracker wpt; private void Awake() { // get the car controller m_Car = GetComponent <CarController>(); s = new Steering(); s.Start(); // wpt = new WaypointTracker(); }
private void Awake() { m_Car = GetComponent <CarController>(); s = new Steering(m_Car); s.Start(); }