Ask a Question

Ask a Question
Back to All

Field population

I wonder if this class actually gets all of it's fields populated?

[Serializable]
public class ObtainCurrency
{
public string symbol;
public long amount;
public long originalAmount;

    public bool HasBonus => originalAmount > 0;
    public long Delta => amount - originalAmount;
}

I'm assuming it's a no - I haven't been able to find any code that would do changes to the originalAmount. So if we need that kind of functionality - we should implement it on top using custom player data?