Esempio n. 1
0
 private void OnValidate()
 {
     if (!tileIds)
     {
         tileIds = FindObjectOfType <TileIds>();
     }
     if (!patternIds)
     {
         patternIds = FindObjectOfType <PatternIds>();
     }
     if (!gatherRules)
     {
         gatherRules = FindObjectOfType <GatherRules>();
     }
     if (!outputGridPossibilities)
     {
         outputGridPossibilities = FindObjectOfType <OutputGridPossibilities>();
     }
     if (!repeatCollapse)
     {
         repeatCollapse = FindObjectOfType <RepeatCollapse>();
     }
     if (!changeOutputGrid)
     {
         changeOutputGrid = FindObjectOfType <ChangeOutputGrid>();
     }
     if (!changePatternToTileIds)
     {
         changePatternToTileIds = FindObjectOfType <ChangePatternToTileIds>();
     }
 }
Esempio n. 2
0
 private void OnValidate()
 {
     if (!gatherRules)
     {
         gatherRules = FindObjectOfType <GatherRules>();
     }
     if (!minEntropy)
     {
         minEntropy = FindObjectOfType <MinEntropy>();
     }
     if (!outputGrid)
     {
         outputGrid = FindObjectOfType <OutputGridPossibilities>();
     }
 }