Пример #1
0
    private LabelListController ConfigureNewLabel(int i, GameObject newLabelList)
    {
        LabelListController labelListController = newLabelList.GetComponentInChildren <LabelListController>();
        string             currentObjectId      = currentObjectsList.objectsList[i];
        LabelConfiguration labelConfiguration   = new LabelConfiguration();

        labelConfiguration.labelText = "- " + currentObjectId;
        labelConfiguration.objectId  = currentObjectId;
        labelListController.ConfigureLabel(labelConfiguration);
        return(labelListController);
    }
Пример #2
0
        /// <summary>
        /// Instantiate right away.
        /// </summary>
        private Configuration()
        {
            var builder = new ConfigurationBuilder()
            .AddJsonFile("config.json")
            .AddJsonFile("config.local.json", optional: true)
            .AddEnvironmentVariables();
            configuration = builder.Build();

            ConnectionStrings = new ConnectionStringConfiguration(configuration.GetSection("ConnectionStrings"));
            Label = new LabelConfiguration(configuration.GetSection("Label"));
            Authentication = new AuthenticationConfiguration(configuration.GetSection("Authentication"));
        }
Пример #3
0
 public void ConfigureLabel(LabelConfiguration labelConfiguration)
 {
     textLabel.text = labelConfiguration.labelText;
     objectId       = labelConfiguration.objectId;
     Debug.Log("New object id is " + objectId);
 }