public void set_HP(KBEngine.Entity entity, object v = null) { if (!hasRenderObj(entity)) { return; } SceneEntityObject target = (SceneEntityObject)entity.renderObj; Debug.Log("设置hp" + entity.getDefinedProperty("HP").ToString()); target.set_HP(entity.getDefinedProperty("HP")); }