You are trying to call what look like static methods in the
Methods
class, but you have not imported a definition of the class via a
using
directive.
currentFlyDirection = Methods.SlowRotation(currentFlyDirection, flyDirection, rotationSpeed);
npc.velocity = Methods.PolarVector(speed, currentFlyDirection);
Check the documentation for the class.