Skip to content

Commit e7d200c

Browse files
committed
Update example
1 parent b9ad983 commit e7d200c

File tree

2 files changed

+10
-0
lines changed
  • Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Example

2 files changed

+10
-0
lines changed

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Example/Example.unity

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ MonoBehaviour:
334334
- id: 1
335335
- id: 2
336336
- id: 3
337+
- id: 4
337338
references:
338339
version: 1
339340
00000000:
@@ -348,6 +349,8 @@ MonoBehaviour:
348349
type: {class: Example/NestedCommand, ns: MackySoft.SerializeReferenceExtensions.Example, asm: Assembly-CSharp}
349350
00000003:
350351
type: {class: AddTypeMenuCommand, ns: MackySoft.SerializeReferenceExtensions.Example, asm: Assembly-CSharp}
352+
00000004:
353+
type: {class: StructCommand, ns: MackySoft.SerializeReferenceExtensions.Example, asm: Assembly-CSharp}
351354
--- !u!4 &1098750747
352355
Transform:
353356
m_ObjectHideFlags: 0

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Example/ExampleAssets/Scripts/Runtime/Example.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,12 @@ public void Execute () {
6969
}
7070
}
7171

72+
[Serializable]
73+
public struct StructCommand : ICommand {
74+
public void Execute () {
75+
Debug.Log("Execute StructCommand");
76+
}
77+
}
78+
7279
}
7380
#endif

0 commit comments

Comments
 (0)