WanderState.ToForageState C# (CSharp) Method