/* * private void OnEnable() * { * ClearSearchResults(); * }*/ void Awake() { instantiatedThumbs = new List <GameObject>(); if (activitiesDatabase == null) { activitiesDatabase = GameObject.FindGameObjectWithTag("ActivitiesDatabase").GetComponent <ActivitiesDatabase>(); } if (searchType == SearchType.Dropdown) { dropdown.options.Clear(); for (int i = 0; i < ActivitiesFranchises.franchises.Count; i++) { dropdown.options.Add(new TMP_Dropdown.OptionData(ActivitiesFranchises.franchises[i].descricao)); } } }
public void Awake() { PopulateWordNew(ActivitiesDatabase.GetActivitiesFromArea(ActivitiesDatabase.serverActivities, worldArea)); cam = Camera.main; }