void Awake()
 {
     if (_singletonInstance == null)
     {
         _singletonInstance = this;
         DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         if (this != _singletonInstance)
         {
             Destroy(this.gameObject);
         }
     }
 }
 private void Awake()
 {
      if (_instance == null)
          {
          _instance = this;
          DontDestroyOnLoad(this.gameObject);
          }
      else
          {
          if (this != _instance)
              {
              Destroy(this.gameObject);
              }
          }
 }