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; } }
void Awake() { instance = this; }
void Start() { world = World_Generator.instance; connection_manager = Connection_Manager.instance; }