void doDefaultBehaviour() { if (string.Compare("StandStill", defaultBehaviour) == 0) { standstill.Updatea(); velocity = standstill.velocity; } else if (string.Compare("Patrol", defaultBehaviour) == 0) { patrol.Updatea(); velocity = patrol.velocity; } else { wander.Updatea(); velocity = wander.velocity; } }