private static InsideCheck.GridCell AffirmGridCell(InsideCheck.GridPosition position) { InsideCheck.AffirmGrid(); InsideCheck.GridCell gridCell = null; if (!InsideCheck._grid.TryGetValue(position, out gridCell)) { gridCell = new InsideCheck.GridCell(); InsideCheck._grid[position] = gridCell; } return(gridCell); }
private void Start() { InsideCheck.AffirmGrid(); this._currentGridCells = new List <InsideCheck.GridCell>(); this._occlusion = new List <bool>(36); for (int i = 0; i < 36; i++) { this._occlusion.Add(false); } if (FMOD_StudioSystem.instance) { this._snapshotInstance = FMOD_StudioSystem.instance.GetEvent("snapshot:/inside_buildings"); } base.StartCoroutine(this.UpdateInsideRoutine()); FMOD_Listener.DrawInsideCheck = new Action(this.DrawDebug); InsideCheck._instance = this; }