Example #1
0
        public void OnApplicationStart()
        {
            if (_init)
            {
                return;
            }
            _init    = true;
            instance = this;

            PauseManager.OnLoad();
        }
Example #2
0
 public void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(this);
     }
 }