public PrefabTag CreatePrefabTag(string tagName) { if (!string.IsNullOrEmpty(tagName)) { PrefabTag newPrefabTag = PrefabTagFactory.Create(tagName, GetAllPrefabTagNames()); _prefabTags.AddEntity(newPrefabTag); PrefabTagWasCreatedInDatabaseMessage.SendToInterestedListeners(newPrefabTag); return(newPrefabTag); } return(null); }
private void RespondToMessage(PrefabTagWasCreatedInDatabaseMessage message) { Repaint(); }
public static void SendToInterestedListeners(PrefabTag prefabTag) { var message = new PrefabTagWasCreatedInDatabaseMessage(prefabTag); MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message); }