private UnityAction DeckCardFunction(DeckCard card, DetailCard detailCard) { return(() => { detailCard.setDetailCard(card); transform.parent.gameObject.SetActive(false); }); }
public override void OnInspectorGUI() { DrawDefaultInspector(); DetailCard card = (DetailCard)target; type = (CatType)EditorGUILayout.EnumPopup(type); if (GUILayout.Button("SET DETAIL CARD")) { Cat cat = new Cat(type); card.setDetailCard(cat); card.transform.Find("about").localScale = Vector3.one; } }