Пример #1
0
 private void RespondToMessage(NewPrefabCategoryWasActivatedMessage message)
 {
     if (Inspector.Get().ActiveInspectorGUIIdentifier == InspectorGUIIdentifier.ObjectSnapping ||
         Inspector.Get().ActiveInspectorGUIIdentifier == InspectorGUIIdentifier.ObjectPlacement)
     {
         DestroyIfExists();
         CreateFromActivePrefabIfNotExists();
     }
 }
        public void SetActivePrefabCategory(PrefabCategory newActivePrefabCategory)
        {
            if (newActivePrefabCategory == null || !ContainsPrefabCategory(newActivePrefabCategory))
            {
                return;
            }

            _prefabCategories.MarkEntity(newActivePrefabCategory);
            NewPrefabCategoryWasActivatedMessage.SendToInterestedListeners(newActivePrefabCategory);
        }
Пример #3
0
 private void RespondToMessage(NewPrefabCategoryWasActivatedMessage message)
 {
     Repaint();
 }
Пример #4
0
        public static void SendToInterestedListeners(PrefabCategory newActivePrefabCategory)
        {
            var message = new NewPrefabCategoryWasActivatedMessage(newActivePrefabCategory);

            MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message);
        }