hello, "good night" is use when you really are going to fall sleep, I mean if you are talking with someone face to face or by phone and you have something else to do and have to finish the conversation but not to fall sleep yet, you just say "ok see you later, bye or whatever you want to be polite but dont say good night if you wont fall sleep yet. Hope that little comment could help you