Ejemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            library    = EditorGUILayout.ObjectField("Library", library, typeof(SpiritLibrary), false) as SpiritLibrary;
            atkLibrary = EditorGUILayout.ObjectField("AttackLibrary", atkLibrary, typeof(AttackLibrary), false) as AttackLibrary;

            serializedObject.Update();
            if (library != null && atkLibrary != null)
            {
                RenderGeneratorStuff();
            }
            spiritList.DoLayoutList();

            if (selectedSpirit != null)
            {
                RenderSpirit(selectedSpirit);

                attackList?.DoLayoutList();
                if (selectedAttack != null)
                {
                    RenderAttack(selectedAttack);
                }
            }

            serializedObject.ApplyModifiedProperties();
        }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     activeLibrary = this;
     particlePanel = GameObject.Find("ParticlePanel");
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     activeLibrary = this;
     particlePanel = GameObject.Find("ParticlePanel");
 }