Esempio n. 1
0
    void Start()
    {
        //lineR = GetComponentInChildren<LineRenderer>();
        //lineR.gameObject.SetActive(false);

        curNumOfConnections = 0;

        connect_manager = Connection_Manager.instance;
        // Add this Pole Handler to the Connection Manager
        connect_manager.AddNewPoleHandler(gridPosX, this);

        world = World_Generator.instance;

        mouse = Mouse_Controller.instance;

        myPole = world.GetPoleAtLocationX(gridPosX);
        if (myPole == null)
        {
            Debug.LogError("Couldnt find my Pole!");
        }

        if (myPole != null)
        {
            maxConnections = myPole.maxConnections;
        }
    }
Esempio n. 2
0
 void Awake()
 {
     instance = this;
 }
Esempio n. 3
0
    void Start()
    {
        world = World_Generator.instance;

        connection_manager = Connection_Manager.instance;
    }