void Start() { _placeGeneration = GameObject.Find("GenerationManager").GetComponent <PlaceGeneration>(); _locationGenerator = GameObject.Find("GenerationManager").GetComponent <LocationGenerator>(); XCoordsOfGreenMob = new int[_placeGeneration.XCoordsOfGreenMobs.Length]; YCoordsOfGreenMob = new int[_placeGeneration.YCoordsOfGreenMobs.Length]; XCoordsOfRedMob = new int[_placeGeneration.XCoordsOfRedMobs.Length]; YCoordsOfRedMob = new int[_placeGeneration.YCoordsOfRedMobs.Length]; for (int i = 0; i < _placeGeneration.XCoordsOfGreenMobs.Length; i++) { XCoordsOfGreenMob[i] = _placeGeneration.XCoordsOfGreenMobs[i]; YCoordsOfGreenMob[i] = _placeGeneration.YCoordsOfGreenMobs[i]; } for (int i = 0; i < _placeGeneration.XCoordsOfRedMobs.Length; i++) { XCoordsOfRedMob[i] = _placeGeneration.XCoordsOfRedMobs[i]; YCoordsOfRedMob[i] = _placeGeneration.YCoordsOfRedMobs[i]; } Creation(); }
void Start() { _sizeOfFoodBlock = 1.3f; _placeGeneration = GameObject.Find("GenerationManager").GetComponent <PlaceGeneration>(); _locationGenerator = GameObject.Find("GenerationManager").GetComponent <LocationGenerator>(); XCoordsOfFood = new int[_placeGeneration.XCoordsOfFood.Length]; YCoordsOfFood = new int[_placeGeneration.YCoordsOfFood.Length]; for (int i = 0; i < _placeGeneration.XCoordsOfFood.Length; i++) { XCoordsOfFood[i] = _placeGeneration.XCoordsOfFood[i]; YCoordsOfFood[i] = _placeGeneration.YCoordsOfFood[i]; } Creation(); }
// Use this for initialization void Start() { _placeGeneration = GameObject.Find("GenerationManager").GetComponent <PlaceGeneration>(); _locationGenerator = GameObject.Find("GenerationManager").GetComponent <LocationGenerator>(); XCoordsOfPartsOfRadio = new int[_placeGeneration.XCoordsOfPartsOfRadio.Length]; YCoordsOfPartsOfRadio = new int[_placeGeneration.YCoordsOfPartsOfRadio.Length]; for (int i = 0; i < XCoordsOfPartsOfRadio.Length; i++) { XCoordsOfPartsOfRadio[i] = _placeGeneration.XCoordsOfPartsOfRadio[i]; YCoordsOfPartsOfRadio[i] = _placeGeneration.YCoordsOfPartsOfRadio[i]; } Creation(); }