Example #1
0
        protected internal override void OnShow(object userData)
        {
            base.OnShow(userData);

            m_AccessoryObjectData = userData as AccessoryObjectData;
            if (m_AccessoryObjectData == null)
            {
                Log.Error("Accessoryobject data is invalid.");
                return;
            }
        }
Example #2
0
        private static void ShowEntity(this EntityComponent entityComponent, Type entityType, string entityGroup, int priority, AccessoryObjectData data)
        {
            if (data == null)
            {
                Log.Warning("Data is invalid.");
                return;
            }

            entityComponent.ShowEntity(data.Id, entityType, data.AssetName, entityGroup, priority, data);
        }