Skip to content

Commit cdd0624

Browse files
committed
fixed an issue with the SyncedTrigger not working correctly if the default synced value is True
1 parent 72d9bd7 commit cdd0624

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Behaviours/Misc/SyncedTrigger.cs

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public void SelectAccessLevel(SerializedProperty value) {
7272
private void Start() {
7373
isOwner = Networking.IsOwner(gameObject);
7474
col = GetComponent<Collider>();
75+
// make sure we init local synced value to the initial state
76+
localSyncedValue = syncedValue;
7577
if (col == null) {
7678
useInteract = false;
7779
return;

0 commit comments

Comments
 (0)