private void Awake() { data = GetComponent <LevelEditorData>(); ui = GetComponent <LevelEditorUI>(); tilePlacement = GetComponent <TilePlacement>(); camController = FindObjectOfType <CamController>(); camController.Init(data.MapData); }
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]) }); }
protected virtual void Awake() { data = GetComponent <LevelEditorData>(); }