方向的枚举类(Directions Enums)

左右

https://github.com/VMware233/VMFramework/blob/main/Assets/VMFramework/Main/Core/Geometry/Direction/LeftRightDirection.cs

上下左右

https://github.com/VMware233/VMFramework/blob/main/Assets/VMFramework/Main/Core/Geometry/Direction/FourTypesDirection.cs

上下左右加上斜角四个方向

https://github.com/VMware233/VMFramework/blob/main/Assets/VMFramework/Main/Core/Geometry/Direction/EightTypesDirection.cs

3维,前后上下左右

https://github.com/VMware233/VMFramework/blob/main/Assets/VMFramework/Main/Core/Geometry/Direction/SixTypesDirection.cs

拓展方法

每个方向都有一些工具类提供拓展方法,这里以上下左右方向为例:

https://github.com/VMware233/VMFramework/blob/main/Assets/VMFramework/Main/Core/Geometry/Direction/FourTypesDirectionUtility.cs

最后更新于

这有帮助吗?