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);
        }
Exemple #2
0
 private void RespondToMessage(PrefabTagWasCreatedInDatabaseMessage message)
 {
     Repaint();
 }
Exemple #3
0
        public static void SendToInterestedListeners(PrefabTag prefabTag)
        {
            var message = new PrefabTagWasCreatedInDatabaseMessage(prefabTag);

            MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message);
        }