Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using Evernite.GameSettings;
- public class TestBehaviour : MonoBehaviour
- {
- [SerializeField] private CardPool cardpool;
- private CardInDeckEditorPrefabSetting cardInDeckSetting;
- private void Awake()
- {
- cardInDeckSetting = EverniteGameSettings.GetSetting<CardInDeckEditorPrefabSetting>();
- }
- public GameObject GetDeckInEditPrefab(CardUnit card)
- {
- var id = card.GetDefaultAttributes<BaseCardAttributes>().ID;
- var cardInfo = cardpool.GetCardInfo(id);
- return cardInDeckSetting.GetCardPrefabForDeckEditor(cardInfo);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement