37 lines
681 B
C#
Raw Normal View History

2024-10-23 17:55:55 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
public class ItemObj : MonoBehaviour
{
public ItemSize itemSize => size;
[SerializeField] private ItemSize size;
[SerializeField] public List<Grid> _grids;
public Grid startGrid;
public Vector3 dev;
public void SetOccGrid(List<Grid> _list)
{
_grids = _list;
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
[Serializable]
public class ItemSize
{
public int x = 1;
public int y = 1;
}