/// <Summary> /// Set object references to cache them. /// </Summary> void SetObjRef() { gameController = GameObject.FindGameObjectWithTag("GameController"); fadeManager = gameObject.GetComponent <FadeManager>(); enterButton = enterButtonObj.GetComponent <Button>(); }
void GetRef() { fadeManager = gameController.GetComponent <FadeManager>(); eventProcessor = gameController.GetComponent <EventProcessor>(); }
/// <Summary> /// Set object references to cache them. /// </Summary> void SetObjRef() { fadeManager = gameObject.GetComponent <FadeManager>(); gameController = GameObject.FindGameObjectWithTag("GameController"); }