/// <summary> /// Tells the game object to move to the specified position. /// </summary> /// <param name="position">The position where to move.</param> public void DoMove(Vector2 position) { brain.RemoveAllSubtasks(); brain.AddSubtask(new Move(gameObject, position, 0.5f)); SoundEffects.Instance.Play(SoundEffects.Sound.BeeMove, 3f); }