// Use this for initialization void Start() { trackerScript = GameObject.Find("Controller").gameObject.GetComponent <InstantTrackerController>(); ButtonParent = GameObject.Find("Button Parent"); trackerScript._gridRenderer.enabled = false; ButtonParent.SetActive(false); }
// Use this for initialization void Start() { //refrence the instant tracker controller from the controller component trackerScript = GameObject.Find("Controller").gameObject.GetComponent <InstantTrackerController>(); //refrence the buttons parent ButtonsParent = GameObject.Find("Buttons Parent"); grid = GameObject.Find("Controller").gameObject.GetComponent <GridRenderer> (); //disable grid and buttons are disbaled when the dinosaur is instanciated grid.enabled = false; ButtonsParent.SetActive(false); }
private void Start() { _controller = GetComponent <InstantTrackerController>(); }