Properties

Rather than setting the fields to public wouldn’t it be better to use properties here to protect the fields from being reassigned outside of the Player class.

 [Export] public AnimationPlayer AnimationPlayerNode {  get; private set; }

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms