void Update(){ if (kills == null) kills = GameObject.FindWithTag("MainCamera").GetComponent<killCounter>(); if (levelUpScript == null) levelUpScript = GameObject.FindWithTag("MainCamera").GetComponent<LevelUpSystem>(); }
void Start (){ levelUpScript = GameObject.FindWithTag("MainCamera").GetComponent<LevelUpSystem>(); kills = GameObject.FindWithTag("MainCamera").GetComponent<killCounter>(); }