Esempio n. 1
0
        /// <summary>
        /// <see cref="Editor.OnInspectorGUI"/>
        /// </summary>
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();
            string      message;
            MessageType type;

            if (!AssetUtil.IsResource(target))
            {
                message =
                    "This game cannot find this Character Data if it is not in a Resources folder. Please move it to a Resources (sub)folder.";
                type = MessageType.Error;
            }
            else
            {
                message = "This Character Data is correctly placed. The game can find it.";
                type    = MessageType.Info;
            }
            EditorGUILayout.HelpBox(message, type);
        }