예제 #1
0
 public static void RemoveViewer(FowViewer viewer)
 {
     if (_instance.viewerList.Contains(viewer))
     {
         _instance.viewerList.Remove(viewer);
     }
 }
예제 #2
0
        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 });
        }
예제 #3
0
 public static void AddViewer(FowViewer viewer)
 {
     if (!_instance.viewerList.Contains(viewer))
     {
         _instance.viewerList.Add(viewer);
     }
 }