Example #1
0
        public void MaxHp(S2C_SYNC_MAX_HP hero)
        {
            SceneEntity targetHero = GetSceneObject(hero.heroID) as SceneEntity;

            if (null != targetHero)
            {
                targetHero.property.maxHp = (int)hero.MaxHP;
            }
        }
Example #2
0
        private void SyncMaxHp(KProtoBuf buf)
        {
            S2C_SYNC_MAX_HP respond = buf as S2C_SYNC_MAX_HP;

            MaxHp(respond);
        }