コード例 #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>();
     }
 }
コード例 #2
0
 private void OnValidate()
 {
     if (!patternIds)
     {
         patternIds = FindObjectOfType <PatternIds>();
     }
 }
コード例 #3
0
 private void OnValidate()
 {
     if (!outputTilemap)
     {
         outputTilemap = FindObjectOfType <Tilemap>();
     }
     if (!patternIds)
     {
         patternIds = FindObjectOfType <PatternIds>();
     }
 }