// Start is called before the first frame update
 void Start()
 {
     achievementManager = AchievementManager._instance;
     sampleInventory    = GameObject.FindGameObjectWithTag("Inventory").GetComponent <SampleInventory>();
     LoadGameFunction();
     sampleInventory.UpdateCoins();
 }
    private void Awake()
    {
        if (_instance != null && _instance != this)
        {
            Destroy(gameObject);
        }
        else
        {
            _instance = this;
        }

        DontDestroyOnLoad(gameObject);

        // Heads Up: these two originally belongs to Start()
        sampleInventory = GameObject.FindGameObjectWithTag("Inventory").GetComponent <SampleInventory>();
        CreateAchievementPrefabs();
    }