Example #1
0
        public override void OnInspectorGUI()
        {
            LevelWaveSet pElem = target as LevelWaveSet;
            int          pId   = EditorGUILayout.IntField("Id", pElem.Id);

            if (pElem.Id != pId)
            {
                pElem.Id = pId;
                pElem.SetName();
            }

            if (GUILayout.Button("添加波次"))
            {
                LevelWave pWave = pElem.AddElement();
            }
        }