I have this property:
float amplifyEnergyPercent { get { return _amplifyEnergyPercent; } set { print("This was set to " + value + " in " + transform.name); _amplifyEnergyPercent = value; } }
And despite it literally printing the console, I don’t get a single change from this:
private void Update()
{
print(transform.name + " " + amplifyEnergyPercent);
}
Context for other prints:
protected void AddEnergyAmplification(float amount)
{
print("I LITTERALLY REACHED HERE SO IT SHOULD PRINT THE PROPERTY RIGHT????");
amplifyEnergyPercent += amount;
}
protected void AddCashAmplification(float amount)
{
amplifyCashPercent += amount;
}
Here is the class that changes the value:
https://hatebin.com/qrqqormnly
This is the complete class (I don’t expect you to read this it’s far too long)
https://hatebin.com/wzbpdqecya
