// Use this for initialization void Start() { ChangeState(STATE.Idle); detected = new List <GameObject>(); enemies = new List <GameObject>(); _updateEnemyList = GameObject.Find("GameManager").GetComponent <UpdateEnemyList>(); }
// Use this for initialization void Start() { updateEnemyList = GameObject.Find("GameManager").GetComponent <UpdateEnemyList>(); if (HealthBar) { _bar = HealthBar.transform.Find("bar").Find("Image").GetComponent <Image>(); _bar.fillAmount = 1; } _startPosition = new Vector3(-73.4f, 0.02f, -14.4f); _score = GameObject.Find("Score").GetComponent <Score>(); }
void Start() { _updateEnemy = GetComponent <UpdateEnemyList>(); _spawnEnemies = GetComponent <SpawnEnemies>(); }