diff --git a/README.md b/README.md index eaff83b..391f1ec 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ public struct SomeMesh : IStaticMesh ```c# public readonly struct SomeGizmo : IGizmo { - // data... + // Данные. public SomeGizmo(/*...*/) { @@ -78,4 +78,15 @@ public readonly struct SomeGizmo : IGizmo } } } +``` +```c# +//создание метода расширения +public static class SomeGizmoExtensions +{ + public static DrawHandler SomeGizmo(this DrawHandler self, /*...*/) + { + self.Gizmo(new SomeGizmo( /*...*/); + return self; + } +} ``` \ No newline at end of file