void Start() { instance = this; DontDestroyOnLoad(gameObject); Debug.Log(PlayerPrefs.GetInt("score")); InvokeRepeating("scoreUpdate", 1.0f, 1.0f); restartButton.gameObject.SetActive(false); StartCoroutine(showAdAfterSeconds()); }
//Private #endregion #region UnityFunctions // Start is called before the first frame update void Start() { uiFunctions = GameObject.FindGameObjectWithTag("GameManager").GetComponent <UiFunctions>(); spawnblocks = true; }