Exemplo n.º 1
0
        private void DrawGrid()
        {
            Color gridColor = Color.gray;

            List <Sector> currentSectors = _sectorManager.GetSectors()[_resolutionIndex];

            foreach (Sector sector in currentSectors)
            {
                GizmosHelper.DrawRect(sector.GetBounds(), gridColor, 1);
            }
        }
Exemplo n.º 2
0
        protected override bool TryToInit()
        {
            _sectorManager = GameObject.FindGameObjectWithTag("SectorManager").GetComponent <SectorManager>();

            if (!_sectorManager.IsInitialized())
            {
                return(false);
            }

            List <List <Sector> > sectors = _sectorManager.GetSectors();

            _resolutionOptions = new string[sectors.Count];

            for (int i = 0; i < sectors.Count; i++)
            {
                _resolutionOptions[i] = GetResolutionName(sectors[i].Count);
            }

            return(true);
        }