When I want to access a field from another script, I create and initialize instance like this:
public GameObject scripts;
TimeScript timeScript;
Pause pause;
HunStrFat hunStrFat;
void Start() {
timeScript = scripts.GetComponent<TimeScript> ();
pause = scripts.GetComponent<Pause> ();
hunStrFat = scripts.GetComponent<HunStrFat> ();
}
Is it correct. Or maybe there is a better way?