コード例 #1
0
        void Awake()
        {
            history         = History.Instance;
            locationDisplay = LocationDisplay.Instance;
            qrCodeReader    = QRCodeReader.Instance;

            history.Close();
            locationDisplay.Close();

            UpdateState();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
 void Awake()
 {
     history         = History.Instance;
     locationDisplay = LocationDisplay.Instance;
 }