/// <summary>
 /// Set object to send position and rotation sync constantly.
 /// </summary>
 /// <param name="newValue">If object should be constantly synced.</param>
 public void SendConstantSync(bool newValue)
 {
     sendConstantSync = newValue;
     if (syncedObject != null)
     {
         syncedObject.ConstantSyncChanged(newValue);
     }
 }
Exemple #2
0
 /// <summary>
 /// Set object to send position and rotation sync constantly.
 /// </summary>
 /// <param name="newValue">If object should be constantly synced.</param>
 public void SendConstantSync(bool newValue)
 {
     sendConstantSync = newValue;
     syncedObject?.ConstantSyncChanged(newValue);
 }