Hey guys!
So I am kinda practicing C# now, and I wonder if there is any better way to use rather than using so many if statements? I use different classes, but my script mostly looks like this which I find annoying:
http://gyazo.com/eb756b787e3fab5fa65c68cce210da01
For example, I am making a player movement script and I cannot stop using if statements all over the place, and I really can not come up with something more unique than that. I'd really appreciate if you got any...
How do you stop using If statements?
So I am kinda practicing C# now, and I wonder if there is any better way to use rather than using so many if statements? I use different classes, but my script mostly looks like this which I find annoying:
http://gyazo.com/eb756b787e3fab5fa65c68cce210da01
For example, I am making a player movement script and I cannot stop using if statements all over the place, and I really can not come up with something more unique than that. I'd really appreciate if you got any...
How do you stop using If statements?