Esempio n. 1
0
        public T Get <T>(BlackboardProperty <T> property) where T : UnityEngine.Object
        {
            if (!_dictionary.ContainsKey(property.Name))
            {
                Debug.LogError("Property [" + property + "] is missing.");
            }

            return((T)_dictionary[property.Name]);
        }
Esempio n. 2
0
 void AddMenuItemForBlackboardProperty <T>(GenericMenu menu, string menuPath, BlackboardProperty <T> property) where T : Component
 {
     menu.AddItem(new GUIContent(menuPath), true, OnBlackboardPropertySelected, property);
 }
Esempio n. 3
0
 public void Set <T>(BlackboardProperty <T> property, T value) where T : UnityEngine.Object
 {
     _dictionary[property.Name] = value;
 }