Esempio n. 1
0
 private void Awake()
 {
     data          = GetComponent <LevelEditorData>();
     ui            = GetComponent <LevelEditorUI>();
     tilePlacement = GetComponent <TilePlacement>();
     camController = FindObjectOfType <CamController>();
     camController.Init(data.MapData);
 }
Esempio n. 2
0
 public static TilePlacement.TilePlacementData NewTilePlacementData(this LevelEditorData data, Vector2Int pos, Tile newTilePrefab)
 {
     return(new TilePlacement.TilePlacementData()
     {
         pos = pos,
         newTilePrefab = newTilePrefab,
         prevTilePrefab = data.GetTilePrefab(data.Grid[pos.x, pos.y])
     });
 }
Esempio n. 3
0
 protected virtual void Awake()
 {
     data = GetComponent <LevelEditorData>();
 }