// ottiene le istanze dei sotto-moduli di games manager: wavesmanager, scoremanager etc. etc. void getSubManagerModulesIstances() { wavesManager = GameObject.FindGameObjectWithTag("WavesManager").GetComponent <WavesManager>(); scoreManager = GameObject.FindGameObjectWithTag("ScoreManager").GetComponent <ScoreManager>(); upgradesManager = GameObject.FindGameObjectWithTag("UpgradesManager").GetComponent <UpgradesManager>(); mainHUDManager = GameObject.FindGameObjectWithTag("MainHUD").GetComponent <MainHUDManager>(); healsManager = GameObject.FindGameObjectWithTag("HealsManager").GetComponent <HealsManager>(); }
void getSubManagerModulesIstances() { healsManager = GameObject.FindGameObjectWithTag("HealsManager").GetComponent <HealsManager>(); }