void Start() { GameObject[] auxObjects = GameObject.FindGameObjectsWithTag("Challenge1"); if (auxObjects != null) this._challengeList = auxObjects.ToList(); this._challengeList.ForEach(c => c.active = false); GameObject[] auxTurretObjects = GameObject.FindGameObjectsWithTag("Turret"); if (auxTurretObjects != null) this._turretsList = auxTurretObjects.ToList(); this._turretsList.ForEach(t => t.GetComponent<TurretManager>().enabled = false); GameObject auxObject = GameObject.Find("HumanoidRed"); this._firstHumanoidManager = auxObject.GetComponent<HumanoidManager>(); }
private void Start() => _humanoidManager = FindObjectOfType <HumanoidManager>();