Skip to content

Commit

Permalink
fixed an issue with the SyncedTrigger not working correctly if the de…
Browse files Browse the repository at this point in the history
…fault synced value is `True`
  • Loading branch information
orels1 committed Nov 5, 2022
1 parent 72d9bd7 commit cdd0624
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Behaviours/Misc/SyncedTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public void SelectAccessLevel(SerializedProperty value) {
private void Start() {
isOwner = Networking.IsOwner(gameObject);
col = GetComponent<Collider>();
// make sure we init local synced value to the initial state
localSyncedValue = syncedValue;
if (col == null) {
useInteract = false;
return;
Expand Down

0 comments on commit cdd0624

Please sign in to comment.