示例#1
0
    // Update is called once per frame
    private void Update()
    {
        UpdateText();

        if (inpExpSide == null && upgradeLevel != 0)
        {
            //since dist check is activated when this will be called then it can be used to get the inpexptile

            inpExpSide = GenController.GetNearObjects(this.transform.GetChild(0).GetChild(1).transform, true);
            GenController.UpdateConnObj();
            GenController.UpdateInpExpLists();
        }
    }