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); }
private void RespondToMessage(NewPrefabCategoryWasActivatedMessage message) { Repaint(); }
public static void SendToInterestedListeners(PrefabCategory newActivePrefabCategory) { var message = new NewPrefabCategoryWasActivatedMessage(newActivePrefabCategory); MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message); }