public void Init(MeshConstructor mc, int _id, Vector3 _vectorToModify) { this.element = mc.GetComponent <ElementCube> (); this.meshConstructor = mc; this.id = _id; transform.localPosition = _vectorToModify; gameObject.layer = 8; }