// Start is called before the first frame update void Start() { distanceCounter = this.gameObject.GetComponent <DistanceCounter>(); rotation = this.gameObject.GetComponent <RotationSimulator>(); demoGraph = this.gameObject.GetComponent <RRTDrawer>(); map = this.gameObject.GetComponent <MapBuilder>(); drone = this.gameObject.GetComponent <PowerfulEngine>(); root = new RRTNode(50, 75); theRRT = new List <RRTNode>(); theRRT.Add(root); demoGraph.addRootNode(root); minDisNode = root; requestList = new LinkedList <(RRTNode, Vector3)>(); b = true; }
// Start is called before the first frame update void Start() { engine = this.GetComponent <PowerfulEngine>(); currentRotation = transform.eulerAngles; //targetRotation = new Vector3(0, 0, 21); }
public Truck() { engineBehaviour = new PowerfulEngine(); exhaustBehaviour = new SimpleExhaust(); wheelsBehaviour = new SixWheels(); }