示例#1
0
    // 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();
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     cr            = this.GetComponent <ClownRules>();
     this.animator = this.GetComponent <Animator>();
 }