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
| struct BoolSet | |
| { | |
| public bool[,] data; | |
| public bool Contains(Vector3 c) => data[(int)c.x + 300, (int)c.y + 300]; | |
| public void Clear() => data = new bool[600, 600]; | |
| public void Put(Vector3 c) | |
| { | |
| c = new Vector3(Mathf.Floor(c.x), Mathf.Floor(c.y)); | |
| data[(int)c.x + 300, (int)c.y + 300] = true; |
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.IO; | |
| using System.Runtime.Serialization.Formatters.Binary; | |
| using Mirror; | |
| using UnityEngine; | |
| // Attach this component to any GameObject | |
| public class SerializerNetBehaviour : NetworkBehaviour | |
| { | |
| public static SerializerNetBehaviour refer; |
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.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using UnityEngine; | |
| public static class HeightSystem | |
| { | |
| static readonly List<Instance> All = new(); | |
| public static float GetHeight(this MonoBehaviour target) => |