I want to add to my project CardSO - a scriptable object. I want to give it a name, points and for some cards a special behavior. how can I add a function to the SO field? for most of the cards, it can be empty (or just returning 0), I hoped I can write a function the takes List and return int. Any thoughts?
My current code layout:
using UnityEngine;
[CreateAssetMenu(fileName = "CardSO", menuName = "New CardSO", order = 0)]
public class CardSO : ScriptableObject
{
public string name;
public int points;
public Sprite Sprite;
// public int SpecialBehavior(List<CardSO>);
}
Thank You!