void Awake() { history = History.Instance; locationDisplay = LocationDisplay.Instance; qrCodeReader = QRCodeReader.Instance; history.Close(); locationDisplay.Close(); UpdateState(); }
void Awake() { locationDisplay = LocationDisplay.Instance; locations = new List <Location>(maxItemCount); locationButtons = new List <HistoryLocationButton>(maxItemCount); for (var i = 0; i < maxItemCount; i++) { var locationButton = (i == 0) ? historyLocationButtonTemplate : Instantiate(historyLocationButtonTemplate, historyLocationButtonTemplate.transform.parent); locationButton.gameObject.SetActive(false); locationButtons.Add(locationButton); locations.Add(null); } UpdateToggleButtonText(); }
void Awake() { history = History.Instance; locationDisplay = LocationDisplay.Instance; }