public void addWood() { woods[woodPointer].GetComponent <SpriteRenderer>().enabled = true; woodPointer++; if (woodPointer == woods.Length) { clearWood = true; timeSave = Time.time; clearPointer = woods.Length - 1; houses.buildHouse(); woodPointer = 0; } }