Exemplo n.º 1
0
 private UnityAction DeckCardFunction(DeckCard card, DetailCard detailCard)
 {
     return(() =>
     {
         detailCard.setDetailCard(card);
         transform.parent.gameObject.SetActive(false);
     });
 }
Exemplo n.º 2
0
    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;
        }
    }
Exemplo n.º 3
0
 public void UpdateDetailCard(DeckCard deckCard)
 {
     detailCard.setDetailCard(deckCard);
 }