37 lines
681 B
C#
37 lines
681 B
C#
|
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;
|
||
|
}
|