Managed Scriptable Object
Using this class
Inheriting from it
[CreateAssetMenu]
public class MySmartSO : ManagedScriptableObject
{
public int score;
public void AddPoints(int points) => score += points;
protected override void Reset()
{
score = 0;
}
}Last updated