// Wander() // go in random directions public void Wander(float rx, float ry) { // pick a location near me // move towards it #region Get Nearest + Null Checks Checks.SetRandomPosition(rx, ry); Vector2 pos = Checks.GetSpecialPosition(); #endregion if (Behaviour.MoveTo(pos, AiData.Speed, 1.0f)) { Checks.ResetSpecials(); Behaviour.ResetActionTimer(); } }