예제 #1
0
    //public bool status;

    void Start()
    {
        dfs    = new UndirectedDepthFirstSearchAlgorithm <string, UndirectedEdge <string> >(AirSystem.graphAir);
        output = GetComponentInChildren <CreateVertex>();

        canv   = this.transform.Find("Canvas").GetComponent <Canvas>();
        slider = canv.GetComponentInChildren <Slider>();

        airSystem = GameObject.Find("PneumaticSystem").GetComponent <AirSystem>();
    }
예제 #2
0
    private void Start()
    {
        // Получение компонентов вершин
        //
        input   = transform.Find("Input").GetComponent <CreateVertex>();
        output1 = transform.Find("Output 1").GetComponent <CreateVertex>();
        output2 = transform.Find("Output 2").GetComponent <CreateVertex>();
        //

        // Получение компонента сладйера
        //
        canv   = this.transform.Find("Canvas").GetComponent <Canvas>();
        slider = canv.GetComponentInChildren <Slider>();
        //

        dfs       = new UndirectedDepthFirstSearchAlgorithm <string, UndirectedEdge <string> >(AirSystem.graphAir);
        airSystem = GameObject.Find("PneumaticSystem").GetComponent <AirSystem>();
    }
예제 #3
0
    // Start is called before the first frame update
    void Start()
    {
        dfs = new UndirectedDepthFirstSearchAlgorithm <string, UndirectedEdge <string> >(AirSystem.graphAir);

        // Получение компонентов вершин
        //
        input  = transform.Find("Input").GetComponent <CreateVertex>();
        output = transform.Find("Output").GetComponent <CreateVertex>();

        // Получение компонента слайдера
        //
        canv   = this.transform.Find("Canvas").GetComponent <Canvas>();
        slider = canv.GetComponentInChildren <Slider>();

        // Получение компонента AirSystem
        //
        airSystem = GameObject.Find("PneumaticSystem").GetComponent <AirSystem>();

        isMethodCalled = false;

        Debug.Log("input name: " + input.myVertexName + " output name: " + output.myVertexName);
    }