17 lines
464 B
C#
17 lines
464 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "Map", menuName = "Game Data/Map")]
|
|
public class Map : ScriptableObject
|
|
{
|
|
public GridManager gridManager; // The grid for this map
|
|
public string sceneName; // The name of the scene this map corresponds to
|
|
public Vector3 gridPosition;
|
|
public Vector2Int gridSize;
|
|
|
|
public void OnEnable()
|
|
{
|
|
gridManager.CreateGridForMap(sceneName, gridSize);
|
|
}
|
|
|
|
} |