public HallwayTemplateMeta(GameObject parent) { this.atMostConstraints = new List <Constraint> (); this.defaultSortingIndex = Random.value * .5f; this.parent = parent; this.child = Child; this.tags = child.GetComponent <ChunkTags> (); HallwayPrototype prototype = parent.GetComponent <HallwayPrototype> (); this.mask = prototype.Mask; }
void OnEnable() { hallway = target as HallwayPrototype; }