/// <summary> /// Unity's method called right after the object is created. /// </summary> protected void Awake() { // Retrieves the desired components _transform = transform; _helpController = GameObject.FindGameObjectWithTag(Tags.GameController).GetComponent<GameControllerHelp>(); _gcic = _helpController.GetComponent<GameControllerIndependentControl>(); helpObjects = GetComponentsInChildren<HelpItem>(); }
void Start() { // Retrives the independent control component _switcher = GetComponent<GameControllerIndependentControl>(); //_mainCameraController = GetComponentInChildren<MainCameraController>(); _helpController = GetComponent<GameControllerHelp>(); _ui = GameObject.FindGameObjectWithTag(Tags.Menus).GetComponent<MenuNavigator>(); _enabled = true; }