void Start() { mtConnect = GameObject.FindGameObjectWithTag("Controller").GetComponent <MTConnect>(); uIController = GameObject.FindGameObjectWithTag("UIController").GetComponent <UIController>(); parser = GameObject.FindGameObjectWithTag("Controller").GetComponent <IndoorGMLParser>(); if (parser.inspection) { navigation = GameObject.FindGameObjectWithTag("Controller").GetComponent <Navigation>(); } machinePanelControl = GameObject.FindGameObjectWithTag("UIController").GetComponent <MachinePanelControl>(); }
private void Start() { parser = GameObject.FindGameObjectWithTag("Controller").GetComponent <IndoorGMLParser>(); uiController = GameObject.FindGameObjectWithTag("UIController").GetComponent <UIController>(); machinePanelControl = GameObject.FindGameObjectWithTag("UIController").GetComponent <MachinePanelControl>(); }