Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        propertyDictionary = new Dictionary <string, ConceptNetProperty>();

        foreach (string x in relationURIs)
        {
            ConceptNetProperty y = Instantiate(propertyPrefab, Vector3.zero, Quaternion.identity, transform);
            y.SetProperty(x);
            y.isActive = false;
            propertyDictionary.Add(x, y);
        }
    }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        Instance = this;
        ConceptNetPropertyList = new List <ConceptNetProperty>();
        PropertyDictionary     = new Dictionary <string, ConceptNetProperty>();

        int count = 0;

        foreach (string x in PropertyContainer.relationURIs)
        {
            ConceptNetProperty y = Instantiate(propertyMenuButton, Vector3.zero, Quaternion.identity, transform);
            y.SetProperty(x);
            y.isActive = false;
            y.index    = count;
            ConceptNetPropertyList.Add(y);
            PropertyDictionary.Add(x, y);

            count++;
        }
    }