// Use this for initialization void Start() { player = GameObject.Find("Player").transform; bushParent = this.transform.parent.GetComponent <BushParentScript> (); originPos = this.transform.position; }
// Use this for initialization void Start() { player = GameObject.Find ("Player").transform; bushParent = this.transform.parent.GetComponent<BushParentScript> (); originPos = this.transform.position; }