public float GetGameObjectHp(int id) { float hp = -1; EntityInfo entity = GetEntityById(id); if (null != entity) { hp = entity.Hp; } return hp; }