C#C
C#16mo ago
jupiter.ryo

✅ A problem with field.

I have an abstract Entity class. This class has "Position" field.
I also have a Player class, that inherits from Entity. Position in Player sets to an certain value (let's say 1, 1) every frame. But for some reason, if I'll try to access entity's position it'll only return the position that set through the constructor, no matter what I do. (it's 0, 0) figuratively speaking, how can I make it return 1, 1?
image.png
image.png
Was this page helpful?