Пример #1
0
    // 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);
    }
Пример #2
0
 // 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);
 }
Пример #3
0
 private void Start()
 {
     _controller = GetComponent <InstantTrackerController>();
 }