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

            MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message);
        }