// Use this for initialization void Start() { currentNodeIndex = 0; nodeCount = 0; currentSpeed = 0f; initializePath(path); GetComponent <Rigidbody>().centerOfMass = centreOfMass; pickup = GetComponent <ActivatePickup>(); raceEntity = GetComponent <RaceEntity>(); }
private void Start() { temprb = GetComponent <Rigidbody>(); pickupHandler = GetComponent <ActivatePickup>(); }