private void onGameObjectGenerated(GameObject remotePlayer, DataEntityHandle remotePlayerHandle, LODRequestData requestData) { LODWeightingCurve lODWeightingCurve = base.gameObject.AddComponent <LODWeightingCurve>(); lODWeightingCurve.CurveData = Data.CurveData; lODWeightingCurve.Setup(); }
private void onLocomotionBroadcasterDoAction(LocomotionController.LocomotionAction action, object userData = null) { if (action == LocomotionController.LocomotionAction.Interact) { LODWeightingCurve lODWeightingCurve = base.gameObject.AddComponent <LODWeightingCurve>(); lODWeightingCurve.CurveData = Data.CurveData; lODWeightingCurve.Setup(); } }