Alternative to two separate functions for open and close

Instead of making two separate functions for opening and closing the door I made the original function into “ChangeDoorAngle(float Angle)” and passed in the different angles as a parameter. Is this a better way to do this? Or am I going to run into problems down the line by using this method?

Privacy & Terms