Skip to content

Commit 2641aac

Browse files
committed
Version 1.6.3
1 parent 4c7c980 commit 2641aac

12 files changed

Lines changed: 58 additions & 23 deletions
0 Bytes
Loading
-5 Bytes
Loading

Assets/Prefabs/Logic/FlowersCounter.prefab

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,20 @@ MonoBehaviour:
7878
- distance: 0
7979
archetypeName: FlowersCounter_20d53524fceab40d5a9ab892525615cb
8080
GeneratesArchetypeDefinition: 1
81-
InterpolationLocation: 1
81+
interpolationLocation: 1
82+
RigidbodyUpdateMode: 0
83+
OnRigidbody2DPositionUpdate:
84+
m_PersistentCalls:
85+
m_Calls: []
86+
OnRigidbody3DPositionUpdate:
87+
m_PersistentCalls:
88+
m_Calls: []
89+
OnRigidbody2DRotationUpdate:
90+
m_PersistentCalls:
91+
m_Calls: []
92+
OnRigidbody3DRotationUpdate:
93+
m_PersistentCalls:
94+
m_Calls: []
8295
bakedScriptType: Coherence.Generated.CoherenceSyncFlowersCounter_20d53524fceab40d5a9ab892525615cb,
8396
Assembly-CSharp
8497
approveAuthorityTransferRequests: 1
@@ -87,6 +100,8 @@ MonoBehaviour:
87100
orphanedBehavior: 1
88101
lifetimeType: 1
89102
uniquenessType: 1
103+
replacementStrategy: 0
104+
unsyncedNetworkEntityPriority: 0
90105
preserveChildren: 0
91106
bindings:
92107
- rid: 2368829912872124468
@@ -104,6 +119,7 @@ MonoBehaviour:
104119
m_Calls: []
105120
scenePrefabInstanceUUID:
106121
coherenceUUID: FlowersCounter
122+
assetVersion:
107123
usingReflection: 0
108124
coherenceTag:
109125
componentActions: []
@@ -177,7 +193,7 @@ MonoBehaviour:
177193
floatCompression: 0
178194
fields:
179195
- type: 1
180-
bits: 5
196+
bits: 6
181197
precision: 0
182198
floatCompression: 0
183199
unityComponent: {fileID: 5847726189716557621}

Assets/Prefabs/UI/3D_Canvas.prefab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ MonoBehaviour:
8383
m_FallbackScreenDPI: 96
8484
m_DefaultSpriteDPI: 96
8585
m_DynamicPixelsPerUnit: 1
86-
m_PresetInfoIsWorld: 1
86+
m_PresetInfoIsWorld: 0
8787
--- !u!114 &44396914545941026
8888
MonoBehaviour:
8989
m_ObjectHideFlags: 0

Assets/Prefabs/UI/UI.prefab

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3023,6 +3023,26 @@ PrefabInstance:
30233023
propertyPath: m_AnchoredPosition.y
30243024
value: 0
30253025
objectReference: {fileID: 0}
3026+
- target: {fileID: 4699750854977396861, guid: 7857ccb49ecb3864787412f46a05c3b2,
3027+
type: 3}
3028+
propertyPath: m_SizeDelta.x
3029+
value: 400
3030+
objectReference: {fileID: 0}
3031+
- target: {fileID: 4699750854977396861, guid: 7857ccb49ecb3864787412f46a05c3b2,
3032+
type: 3}
3033+
propertyPath: m_SizeDelta.y
3034+
value: 400
3035+
objectReference: {fileID: 0}
3036+
- target: {fileID: 4699750854977396861, guid: 7857ccb49ecb3864787412f46a05c3b2,
3037+
type: 3}
3038+
propertyPath: m_AnchoredPosition.x
3039+
value: -200
3040+
objectReference: {fileID: 0}
3041+
- target: {fileID: 4699750854977396861, guid: 7857ccb49ecb3864787412f46a05c3b2,
3042+
type: 3}
3043+
propertyPath: m_AnchoredPosition.y
3044+
value: -200
3045+
objectReference: {fileID: 0}
30263046
- target: {fileID: 4847058523678923213, guid: 7857ccb49ecb3864787412f46a05c3b2,
30273047
type: 3}
30283048
propertyPath: m_SizeDelta.y

Assets/Scripts/Persistence/FlowersHandler.cs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using Coherence;
23
using Coherence.Connection;
34
using Coherence.Toolkit;
@@ -22,26 +23,24 @@ public class FlowersHandler : MonoBehaviour
2223
private void Awake()
2324
{
2425
_bridge = FindObjectOfType<CoherenceBridge>();
26+
_counter = FindObjectOfType<Counter>();
27+
_counterSync = _counter.GetComponent<CoherenceSync>();
28+
}
29+
30+
private void OnEnable()
31+
{
32+
_counter.CounterChanged += OnCounterChanged;
2533
_bridge.onLiveQuerySynced.AddListener(OnLiveQuerySynced);
2634
_bridge.onDisconnected.AddListener(OnDisconnect);
2735
}
2836

2937
private void OnDisconnect(CoherenceBridge bridge, ConnectionCloseReason reason) => RemoveFlowerGameObjects();
3038

31-
private void OnLiveQuerySynced(CoherenceBridge obj)
32-
{
33-
_counter = FindObjectOfType<Counter>();
34-
35-
_counterSync = _counter.GetComponent<CoherenceSync>();
36-
_counter.CounterChanged += OnCounterChanged;
37-
38-
UpdateText();
39-
}
39+
private void OnLiveQuerySynced(CoherenceBridge obj) => UpdateText();
4040

4141
private void OnDisable()
4242
{
43-
if (_counter != null) _counter.CounterChanged -= OnCounterChanged;
44-
43+
_counter.CounterChanged -= OnCounterChanged;
4544
_bridge.onLiveQuerySynced.RemoveListener(OnLiveQuerySynced);
4645
_bridge.onDisconnected.RemoveListener(OnDisconnect);
4746
}

Assets/Settings/Renderer_WorldUI.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ MonoBehaviour:
1515
m_Active: 1
1616
settings:
1717
passTag: RenderObjects
18-
Event: 1000
18+
Event: 600
1919
filterSettings:
2020
RenderQueueType: 1
2121
LayerMask:

Assets/coherence/Gathered.schema

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ component Flower_a167402e36850884aa7ce3d374cd6c77_Flower_6689584802229134021 [id
1212
timePlanted UInt [bits "32", range-min "0", range-max "4294967295"]
1313

1414
component FlowersCounter_20d53524fceab40d5a9ab892525615cb_Counter_5847726189716557621 [id "157"]
15-
count Int [bits "5", range-min "0", range-max "40"]
15+
count Int [bits "6", range-min "0", range-max "40"]
1616

1717
component Player_cd9bcc1feead9419fac0c5981ce85c23_Animator_8498588009909292941 [id "158"]
1818
MoveSpeed Float [bits "14", range-min "0", range-max "10", compression "FixedPoint", precision "0.001"]
@@ -109,7 +109,7 @@ archetype FlowersCounter_20d53524fceab40d5a9ab892525615cb [id "3"]
109109
WorldPosition [id "181", base-id "0"]
110110
archetype_field value [bits "17", range-min "-100", range-max "600", compression "FixedPoint", precision "0.01"]
111111
FlowersCounter_20d53524fceab40d5a9ab892525615cb_Counter_5847726189716557621 [id "182", base-id "157"]
112-
archetype_field count [bits "5", range-min "0", range-max "40"]
112+
archetype_field count [bits "6", range-min "0", range-max "40"]
113113

114114
archetype Player_cd9bcc1feead9419fac0c5981ce85c23 [id "4"]
115115
lod 0

Assets/coherence/RuntimeSettings.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ MonoBehaviour:
1414
m_EditorClassIdentifier:
1515
versionInfo: {fileID: 11400000, guid: 2191b6f902c97477baa32a7919010503, type: 2}
1616
runtimeKey: f2618e8d1484459db317d1c207413c5b
17-
schemaID: 84a56ccc61aa14a12da762ffd9f7362f7ab29f66
17+
schemaID: 86164621087b7a04f1d23fdf9bd2ec2ec161150f
1818
simulatorSlug:
1919
localHost: 127.0.0.1
2020
localWorldUDPPort: 32001

Assets/coherence/baked/Definition.gen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace Coherence.Generated
1616

1717
public class Definition : IDefinition
1818
{
19-
public const string schemaId = "84a56ccc61aa14a12da762ffd9f7362f7ab29f66";
19+
public const string schemaId = "86164621087b7a04f1d23fdf9bd2ec2ec161150f";
2020
public const uint InternalWorldPosition = 0;
2121
public const uint InternalWorldOrientation = 1;
2222
public const uint InternalLocalUserComponent = 2;

0 commit comments

Comments
 (0)