Update README.md

This commit is contained in:
Mikhail 2025-02-23 19:34:29 +08:00 committed by GitHub
parent 0c4ba90ef4
commit 018964d1d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,7 @@ public struct SomeMesh : IStaticMesh
```c# ```c#
public readonly struct SomeGizmo : IGizmo<SomeGizmo> public readonly struct SomeGizmo : IGizmo<SomeGizmo>
{ {
// data... // Данные.
public SomeGizmo(/*...*/) public SomeGizmo(/*...*/)
{ {
@ -79,3 +79,14 @@ public readonly struct SomeGizmo : IGizmo<SomeGizmo>
} }
} }
``` ```
```c#
//создание метода расширения
public static class SomeGizmoExtensions
{
public static DrawHandler SomeGizmo(this DrawHandler self, /*...*/)
{
self.Gizmo(new SomeGizmo( /*...*/);
return self;
}
}
```