mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-18 01:54:37 +08:00
Update README.md
This commit is contained in:
parent
0c4ba90ef4
commit
018964d1d1
13
README.md
13
README.md
@ -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(/*...*/)
|
||||||
{
|
{
|
||||||
@ -78,4 +78,15 @@ public readonly struct SomeGizmo : IGizmo<SomeGizmo>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
```c#
|
||||||
|
//создание метода расширения
|
||||||
|
public static class SomeGizmoExtensions
|
||||||
|
{
|
||||||
|
public static DrawHandler SomeGizmo(this DrawHandler self, /*...*/)
|
||||||
|
{
|
||||||
|
self.Gizmo(new SomeGizmo( /*...*/);
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user