void Start() { instance = this; best = PlayerPrefs.GetInt("bestScore", 0); _best.text = best.ToString(); _mult.text = "X" + PlayerPrefs.GetInt("multiplier", 1).ToString(); }
/// <summary> /// Script entry point /// </summary> private void Start() { m_uID = GameObject.FindObjectOfType<UIDraw>(); m_eDB = GameObject.FindObjectOfType<EntityDatabase>(); m_bossActive = false; m_score = 0; m_tickTime = true; StartCoroutine(LevelTimer()); }
//public AudioSource audioSource; private void Awake() { Instance = this; }