예제 #1
0
    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;
    }
예제 #2
0
 void OnEnable()
 {
     hallway = target as HallwayPrototype;
 }