Ejemplo n.º 1
0
 public WFCPrototype(int id, int rotation, bool flipped, WFCSchema schema)
 {
     this.Id       = id;
     this.Schema   = schema;
     this.Rotation = rotation;
     this.Flipped  = flipped;
 }
Ejemplo n.º 2
0
 public void OnEnable()
 {
     prototype    = (WFCSchema)target;
     p_directions = new[] {
         serializedObject.FindProperty("up"),
         serializedObject.FindProperty("down"),
         serializedObject.FindProperty("left"),
         serializedObject.FindProperty("right"),
         serializedObject.FindProperty("back"),
         serializedObject.FindProperty("forward")
     };
 }