private void FinishSummon() { GameObject s = Instantiate(skellyPrefab, transform.position, Quaternion.identity); EquipmentManager em = s.transform.GetComponentInChildren <EquipmentManager>(); em.EquipKit(kit); em.EquipTrinket(trinket); MinionManager.manager.AddMinion(s.GetComponent <MinionController>()); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); GUILayout.BeginVertical(); EditorGUI.BeginChangeCheck(); if (GUILayout.Button("Equip Test Item")) { Undo.RecordObject(manager, "Test Item"); manager.EquipKit(manager.testItem); } EditorGUI.EndChangeCheck(); GUILayout.EndVertical(); }