Exemplo n.º 1
0
        public override void Init()
        {
            base.Init();
            GameObject canvas = GameObject.Find("Canvas");

            mRootUI = UnityTool.FindChild(canvas, "SoldierInfoUI");

            mSoldierIcon = UITool.FindChild <Image>(mRootUI, "SoldierIcon");
            mSoldierName = UITool.FindChild <Text>(mRootUI, "SoldierName");
            mHp          = UITool.FindChild <Text>(mRootUI, "Hp");
            mHPSlider    = UITool.FindChild <Slider>(mRootUI, "HPSlider");
            mLevel       = UITool.FindChild <Text>(mRootUI, "Level");
            mAtk         = UITool.FindChild <Text>(mRootUI, "Atk");
            mAtkRange    = UITool.FindChild <Text>(mRootUI, "AtkRange");
            mMoveSpeed   = UITool.FindChild <Text>(mRootUI, "MoveSpeed");

            Hide();
        }