// Update is called once per frame private void Update() { UpdateText(); if (inpExpSide == null && upgradeLevel != 0) { // Debug.Log(this.gameObject.name + this.transform.ToString() + "sent to cc trnas"); // Debug.Log(this.transform.GetChild(0).GetChild(1).transform.name + this.transform.GetChild(0).GetChild(1).transform.transform.ToString() + "sent to cc trnas"); //inpExpSide = CConn.GetNearObjects(this.gameObject.transform, true); //since dist check is activated when this will be called then it can be used to get the inpexptile inpExpSide = CConn.GetNearObjects(this.transform.GetChild(0).GetChild(1).transform, true); CConn.UpdateConnObj(); CConn.UpdateInpExpLists(); } }