puisqu'on utilise des assembly definitions maintenant, il est important que les scripts soient posés dans le dossier Scripts pour qu'ils soient accessibles aux autres scripts. Il a donc fallu déplacer les scripts se trouvant dans le dossier LevelEditor.
24 lines
523 B
C#
24 lines
523 B
C#
using UnityEngine.Tilemaps;
|
|
using UnityEngine;
|
|
using System;
|
|
|
|
namespace GatherAndDefend.LevelEditor
|
|
{
|
|
[Serializable]
|
|
public class TileData
|
|
{
|
|
[SerializeField]
|
|
private TileBase _tile;
|
|
[SerializeField]
|
|
private Vector3Int _position;
|
|
|
|
public TileBase Tile => _tile;
|
|
public Vector3Int Position => _position;
|
|
|
|
public TileData(Vector3Int position, TileBase tile)
|
|
{
|
|
this._position = position;
|
|
this._tile = tile;
|
|
}
|
|
}
|
|
} |