public void MaxHp(S2C_SYNC_MAX_HP hero) { SceneEntity targetHero = GetSceneObject(hero.heroID) as SceneEntity; if (null != targetHero) { targetHero.property.maxHp = (int)hero.MaxHP; } }
private void SyncMaxHp(KProtoBuf buf) { S2C_SYNC_MAX_HP respond = buf as S2C_SYNC_MAX_HP; MaxHp(respond); }