public void Activated() { // Put the character in the center of a random polygon. ConvexPolygon randomPoly = _scene.NavMesh.PolygonList[_random.Next(_scene.NavMesh.PolygonList.Count)]; _playerCharacter.SetPosition(randomPoly.CalculateCentroid()); _playerCharacter.FaceDown(); }