Example #1
0
        void Awake()
        {
            RegisterEventHandler();
            DeathBtn.HideMyself();
            //TeamleaderIcon.ChangeSprite(0);
            DeathBtn.SetCallBackFuntion(OnDeathBtnClick);

            //PlayerRollStrengthManager.Instance.ResetRollStrength();//重置翻滚体力值
        }
Example #2
0
        void Awake()
        {
            RegisterEventHandler();
            DeathBtn.HideMyself();
            TeamleaderIcon.ChangeSprite(0);
            DeathBtn.SetCallBackFuntion(OnDeathBtnClick);

            PlayerRollStrengthManager.Instance.ResetRollStrength();//重置翻滚体力值

            if (GO_HP != null)
            {
                m_HPScale = GO_HP.transform.localScale;
            }
            if (GO_MP != null)
            {
                m_MPScale = GO_MP.transform.localScale;
            }
        }