/// Apply the received values to our GameObjects private void ApplyValues() { /// The TransformCrusher and ElementCrushers have an apply method that will apply changes without overwriting the values /// that were not networked. For example if your object only moves on the x axis, y and z will not change from their current /// values when Apply() is used. if (!IsMine) { compMatrix.Apply(transform); } }
/// Apply the received values to our GameObjects private void ApplyValues() { /// The TransformCrusher and ElementCrushers have an apply method that will apply changes without overwriting the values /// that were not networked. For example if your object only moves on the x axis, y and z will not change from their current /// values when Apply() is used. if (!IsMine) { compMatrix.Apply(transform); } mr.material.color = color; meterImage.fillAmount = meterval; flasher.SetActive(flasherIsOn); }