public static StateManager GetInstance()
 {
     if (instance == null)
     {
         instance = new StateManager();
     }
     return instance;
 }
 public GameEndTrigger(Rectangle boundingBox)
 {
     this.boundingBox = boundingBox;
     pm = PlayerManager.GetInstance();
     sm = StateManager.GetInstance();
 }