Skip to content

Commit 222a151

Browse files
committed
fix: Pool Manager Typos
1 parent 03219ec commit 222a151

5 files changed

Lines changed: 22 additions & 22 deletions

File tree

Runtime/Scripts/MaterialFlow/PoolManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public Payload Instantiate(PayloadDescription description)
111111
var payload = Instantiate(description.Transform.GetPosition(), description.Transform.rotation, description.TypeId, description.UniqueId);
112112
if (payload is null) return null;
113113

114-
payload.ApplyDiscription(description);
114+
payload.ApplyDescription(description);
115115

116116
var parent = FindPayload(description.ParentUniqueId);
117117
if (parent is not null)

Samples/Demo/0.1 Devices.unity

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ MonoBehaviour:
783783
m_PersistentCalls:
784784
m_Calls: []
785785
_link:
786-
_enable: 1
786+
_enable: 0
787787
_isConnected:
788788
_value: 0
789789
_type: FB_Drive
@@ -934,7 +934,7 @@ MonoBehaviour:
934934
m_PersistentCalls:
935935
m_Calls: []
936936
_link:
937-
_enable: 1
937+
_enable: 0
938938
_isConnected:
939939
_value: 0
940940
_type: FB_SensorAnalog
@@ -1086,7 +1086,7 @@ MonoBehaviour:
10861086
m_PersistentCalls:
10871087
m_Calls: []
10881088
_link:
1089-
_enable: 1
1089+
_enable: 0
10901090
_isConnected:
10911091
_value: 0
10921092
_type: FB_Cylinder
@@ -1846,7 +1846,7 @@ MonoBehaviour:
18461846
m_PersistentCalls:
18471847
m_Calls: []
18481848
_link:
1849-
_enable: 1
1849+
_enable: 0
18501850
_isConnected:
18511851
_value: 0
18521852
_type: FB_SensorBinary
@@ -3071,7 +3071,7 @@ MonoBehaviour:
30713071
m_Name:
30723072
m_EditorClassIdentifier:
30733073
_override:
3074-
_value: 1
3074+
_value: 0
30753075
_target:
30763076
_value: 0
30773077
_value:
@@ -3402,7 +3402,7 @@ MonoBehaviour:
34023402
m_Name:
34033403
m_EditorClassIdentifier:
34043404
_override:
3405-
_value: 1
3405+
_value: 0
34063406
_target:
34073407
_value: 0
34083408
_value:
@@ -4038,7 +4038,7 @@ MonoBehaviour:
40384038
m_PersistentCalls:
40394039
m_Calls: []
40404040
_link:
4041-
_enable: 1
4041+
_enable: 0
40424042
_isConnected:
40434043
_value: 0
40444044
_type: FB_Drive
@@ -5543,7 +5543,7 @@ MonoBehaviour:
55435543
m_PersistentCalls:
55445544
m_Calls: []
55455545
_link:
5546-
_enable: 1
5546+
_enable: 0
55475547
_isConnected:
55485548
_value: 0
55495549
_type: FB_SensorBinary
@@ -6047,7 +6047,7 @@ MonoBehaviour:
60476047
m_PersistentCalls:
60486048
m_Calls: []
60496049
_link:
6050-
_enable: 1
6050+
_enable: 0
60516051
_isConnected:
60526052
_value: 0
60536053
_type: FB_SensorBinary
@@ -6472,7 +6472,7 @@ MonoBehaviour:
64726472
m_PersistentCalls:
64736473
m_Calls: []
64746474
_link:
6475-
_enable: 1
6475+
_enable: 0
64766476
_isConnected:
64776477
_value: 0
64786478
_type: FB_Cylinder
@@ -6873,7 +6873,7 @@ MonoBehaviour:
68736873
m_PersistentCalls:
68746874
m_Calls: []
68756875
_link:
6876-
_enable: 1
6876+
_enable: 0
68776877
_isConnected:
68786878
_value: 0
68796879
_type: FB_SensorAnalog
@@ -8139,7 +8139,7 @@ MonoBehaviour:
81398139
m_PersistentCalls:
81408140
m_Calls: []
81418141
_link:
8142-
_enable: 1
8142+
_enable: 0
81438143
_isConnected:
81448144
_value: 0
81458145
_type: FB_Lock
@@ -8389,7 +8389,7 @@ MonoBehaviour:
83898389
m_PersistentCalls:
83908390
m_Calls: []
83918391
_link:
8392-
_enable: 1
8392+
_enable: 0
83938393
_isConnected:
83948394
_value: 0
83958395
_type: FB_Drive
@@ -8611,7 +8611,7 @@ MonoBehaviour:
86118611
m_PersistentCalls:
86128612
m_Calls: []
86138613
_link:
8614-
_enable: 1
8614+
_enable: 0
86158615
_isConnected:
86168616
_value: 0
86178617
_type: FB_SensorAnalog
@@ -9156,7 +9156,7 @@ MonoBehaviour:
91569156
m_PersistentCalls:
91579157
m_Calls: []
91589158
_link:
9159-
_enable: 1
9159+
_enable: 0
91609160
_isConnected:
91619161
_value: 0
91629162
_type: FB_Cylinder
@@ -11161,7 +11161,7 @@ MonoBehaviour:
1116111161
m_Name:
1116211162
m_EditorClassIdentifier:
1116311163
_link:
11164-
_enable: 1
11164+
_enable: 0
1116511165
_isConnected:
1116611166
_value: 0
1116711167
_type: FB_Lamp
@@ -11808,7 +11808,7 @@ MonoBehaviour:
1180811808
m_Name:
1180911809
m_EditorClassIdentifier:
1181011810
_link:
11811-
_enable: 1
11811+
_enable: 0
1181211812
_isConnected:
1181311813
_value: 0
1181411814
_type: FB_Switch

Tests/Editor/MaterialFlow/TestCollisionDetector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private static Payload NewEntity(Payload.PayloadCategory type, int groupId)
285285
Type = (int)type,
286286
GroupId = groupId
287287
};
288-
entity.ApplyDiscription(discription);
288+
entity.ApplyDescription(discription);
289289
return entity;
290290
}
291291

Tests/Editor/MaterialFlow/TestEntity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void ApplyDiscription(string name, Payload.PayloadCategory entityType, Co
5656
PhysicState = (int)physicState
5757
};
5858

59-
_payload.ApplyDiscription(discription);
59+
_payload.ApplyDescription(discription);
6060

6161
Assert.AreEqual(name, _payload.name, "Name is wrong");
6262
Assert.AreEqual(entityType, _payload.Category, "Type is wrong");
@@ -80,7 +80,7 @@ public void ApplyDiscription(int typeId, int groupId, ulong uniqueId)
8080
UniqueId = uniqueId
8181
};
8282

83-
_payload.ApplyDiscription(discription);
83+
_payload.ApplyDescription(discription);
8484

8585
Assert.AreEqual(typeId, _payload.TypeId, "TypeId is wrong");
8686
Assert.AreEqual(groupId, _payload.GroupId, "GroupId is wrong");

Tests/Editor/MaterialFlow/TestPoolBuffer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private static Payload CreateEntity(int typeId = 0, uint uniqueId = 0, GameObjec
2626
UniqueId = uniqueId
2727
};
2828

29-
entity.ApplyDiscription(discription);
29+
entity.ApplyDescription(discription);
3030

3131
if (parent != null) gameObject.transform.parent = parent.transform;
3232
return entity;

0 commit comments

Comments
 (0)