we go to the same university and live close to each other

My ex and I go to the same university and we study at the same department, we also live 2 minutes away from each other and I walk past his building every day. What should I do if we see each other?