Relative Content

Tag Archive for c#if-statementstate-machine

Using multiple if checks instead of state machines

I’ve been trying to implement shapeshifting mechanic to my game. And there are three current modes that you can switch between. But there seems to be a problem with the if checks im using or the way im using it. I asked some people but they told me to use state machines which i found really complicated for my simple code. But i would also like to hear your opinion.