Moved duplicate code into methods
Merge branch 'master' of https://github.com/ribbybibby/Unity-Learn

Conflicts:
	SwitchBlade/Scripts/EnemyMovement.cs