public void OnLoadUnityObjectSucess(SceneObjectEntity entity, UnityObject unityObj) { if (!Verify(entity, unityObj)) { return; } entity.AddUnityObject(unityObj); AppearanceUtils.EnableRender(unityObj.AsGameObject); ProcessSceneObjectSetting(entity, unityObj.AsGameObject); }
public void OnLoadSucc(SceneObjectEntity entity, UnityObject unityObj) { if (null == entity) { Logger.Error("Entity type mismatched !!"); return; } var model = unityObj.AsGameObject; if (null == model) { Logger.Error("Resource load type mismatched"); return; } else { entity.AddUnityObject(unityObj); } AppearanceUtils.EnableRender(model); InitSceneObject(entity, model); }