What platform are you aiming to build for? If you're exporting to Web or another AoT (ahead of time compilation) platform, this can be a struggle. If you're building a standalone build though using reflection it's possible (and easy).
GetType().GetField("health").GetValue(this);
GetType().GetField("health").SetValue(this, 10);
↧