// Use this for initialization void Start() { cr = this.GetComponent <ClownRules>(); directionalTendency = Random.Range(movementVariance * -1, movementVariance); speedTendency = Random.Range(0.4f, 1.0f); GameObject thing = GameObject.FindWithTag("GameController"); if (thing != null) { gameController = thing.GetComponent <GameController>(); } targetedCarHeight = targetACar(); }
// Use this for initialization void Start() { cr = this.GetComponent <ClownRules>(); this.animator = this.GetComponent <Animator>(); }