private void Awake() { ///////////////////// if (Instance == null) { Instance = this; } else { Destroy(this); } ///////////////////// //create new two dementional array of EnvQueryItem points queryItems = new AEnvQueryItem[gridSize + 1, gridSize + 1]; if (querier == null) { querier = transform; } //Set-Up Grid generator = new AGridGenerator(querier, enemy, gridSize); if (generator != null) { //create Grid from array queryItems = generator.Item(); //if(queryItems != null) //{ // for (int x = 0; x < gridSize; x++) // { // for (int z = 0; z < gridSize; z++) // { // isColliding = queryItems[x, z].IsColliding; // if(isColliding) // { // queryItems[x, z].CheckForNeighbor; // } // } // } //} } ReCalcutalePoints(); }