// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player"); the_boss = (boss) GameObject.FindGameObjectWithTag("Spider").GetComponent<boss>(); StartCoroutine(pinSpit(3f)); StartCoroutine(webSpit(10f)); movepoints = the_boss.movepoints; changeTarget(); }