示例#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]);
        }
示例#2
0
 void AddMenuItemForBlackboardProperty <T>(GenericMenu menu, string menuPath, BlackboardProperty <T> property) where T : Component
 {
     menu.AddItem(new GUIContent(menuPath), true, OnBlackboardPropertySelected, property);
 }
示例#3
0
 public void Set <T>(BlackboardProperty <T> property, T value) where T : UnityEngine.Object
 {
     _dictionary[property.Name] = value;
 }