public static void RemoveViewer(FowViewer viewer) { if (_instance.viewerList.Contains(viewer)) { _instance.viewerList.Remove(viewer); } }
public int[] GetPos(FowViewer viewer) { var x = (int)((viewer.transform.position.x - transform.position.x + FogSizeX / 2) / MapTileSize); var y = (int)((viewer.transform.position.z - transform.position.z + FogSizeY / 2) / MapTileSize); return(new int[] { x, y }); }
public static void AddViewer(FowViewer viewer) { if (!_instance.viewerList.Contains(viewer)) { _instance.viewerList.Add(viewer); } }