This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using Sirenix.OdinInspector; | |
using UnityEngine; | |
namespace Code.Dev.Network | |
{ | |
public class Test_UDP_Send : MonoBehaviour |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; | |
using UnityEngine; | |
namespace Code.Dev.Network | |
{ | |
public class Test_UDP_Receive : MonoBehaviour |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// 生成用于扫描的纹理 | |
/// </summary> | |
private static Mesh GenNavMesh() | |
{ | |
var walkAreaList = CEVoxelMeshGreedyOptimizer.Optimize(Game.Common.Map.MapSizeX, Game.Common.Map.MapSizeY, IsSameTile, IsHaveTile); | |
var vertices = new List<Vector3>(); | |
var triangles = new List<int>(); | |
var normals = new List<Vector3>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sirenix.OdinInspector; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Code.EditorTools.CreateMesh | |
{ | |
public class Mono_CreateQuadAssets : MonoBehaviour | |
{ | |
public Transform left_bottom; //0 | |
public Transform left_top; //1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tileMap = _t; | |
var bounds = tileMap.cellBounds; | |
var allTiles = tileMap.GetTilesBlock(bounds); | |
for (var x = 0; x < bounds.size.x; x++) | |
{ | |
for (var y = 0; y < bounds.size.y; y++) | |
{ | |
var tile = allTiles[x + y * bounds.size.x]; | |
if (tile == null) continue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
public class TightImage : Image | |
{ | |
private RectTransform mRect; | |
private RectTransform RectTransform | |
{ | |
get |
NewerOlder