private void Start() { health = 1000.0; transform.localScale = new Vector3(0.035f, 0.4f, 0); transform.localPosition = new Vector3(0.9f, 0.51f, 0); GBC = GameObject.FindGameObjectWithTag("GreenBoss").GetComponent <greenBossControl>(); }
// Use this for initialization void Start() { head = GameObject.FindGameObjectWithTag("EnemyBoss").GetComponent <greenBossCollision>(); playerScript = GameObject.FindWithTag("Player").GetComponent <MoveAround>(); enemiesAlive = GameObject.FindGameObjectWithTag("Manager").GetComponent <roundsAndEnemyManager>(); health = GameObject.FindGameObjectWithTag("greenEnemyHealth").GetComponent <GreenBossHealth>(); shuttleControl = GameObject.FindGameObjectWithTag("EnemyBoss").GetComponent <greenBossControl>(); }