public void MaxMp(S2C_SYNC_MAX_MP hero) { return; SceneEntity targetHero = GetSceneObject(hero.heroID) as SceneEntity; if (null != targetHero) { targetHero.property.maxMp = (int)hero.MaxMP; } }
private void SyncMaxMp(KProtoBuf buf) { S2C_SYNC_MAX_MP respond = buf as S2C_SYNC_MAX_MP; MaxMp(respond); }