It does not matter if it is a good moment or a bad moment, every moment in life is temporary. When things are good, enjoy the experience because it will not last long. When things are bad, learn from the experience, because it will not last long.
Focus on what you want, not what you do not like. If all you do is think about the bad things in your life or the things that you do not want, you will not be as motivated to see the pathway to success. A negative mind does not give positive results. If you focus on what you want and who you want that with, your motivation becomes more clear, and your actions will start directing you towards success.