Great video for my current level of learning! I was able to see how you use an abstract class, and a simple state machine. Well done. I need to make something similar with enum, but this helps.
Because it doesn't matter or effect the performance. You can make them abstract but it won't change anything. The abstract property only enforces an override in the subclasses.
It is probably better to stick to conventions in tutorials, but I am more focused on the logic and functionality of the program. I don't use private variables or constants either unless there is a need for it. All of these conventions impose restrictions on the rest of the programming that often leads to regret in my own personal experience. So its not right or wrong, just my choice.
Great video for my current level of learning! I was able to see how you use an abstract class, and a simple state machine. Well done. I need to make something similar with enum, but this helps.
Glad to hear it, thanks for the feedback.
You are my savior
thanks that helped a lot. It also would be helpful if you will upload the code.
The abstraction is all wrong though. Why didn't you make enter() and update() abstract?
Because it doesn't matter or effect the performance. You can make them abstract but it won't change anything. The abstract property only enforces an override in the subclasses.
I just don't get why you don't use conventions in a tutorial.
It is probably better to stick to conventions in tutorials, but I am more focused on the logic and functionality of the program. I don't use private variables or constants either unless there is a need for it. All of these conventions impose restrictions on the rest of the programming that often leads to regret in my own personal experience. So its not right or wrong, just my choice.
@@alleyb62 you've got a point
can you by any way give ascess to the code of this video
Hey thanks for watching. Unfortunately I don't think I have this code any more.
@@alleyb62 ok anyways I understand
Thank you
This is not state machine it .. state design patern
"state machine" is the problem. "state design pattern" is a pattern to solve the problem.